[
https://issues.apache.org/jira/browse/LUCENE-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652888#action_12652888
]
Doug Cutting commented on LUCENE-1473:
--------------------------------------
bq. If it is not meant to be serialized, why did it implement Serializable.
Furthermore, what is the reason to avoid it being serialized? I find the reason
being the cost of support kinda ridiculous, seems this reason can be applied to
any bug fix, because this at the end of the day, it is a bug.
The "implements Serializeable" was added to support RemoteSearchable. If we
believe this creates a bug, then perhaps we should remove this and implement
RemoteSearchable in another way. As it stands, Lucene does not support Java
Serialization across Lucene versions. That seems to me more like a limitation
than a bug, no?
Every line of code added to Lucene is a support burden, so we must carefully
weigh the costs and benefits of each line. This issue proposes to add many
lines, and to add a substantial new back-compatibility requirement.
Back-compatibility is something that Lucene takes seriously. We make promises
about both API back-compatibility and file-format back-compatibility. These
already significantly constrain development. Adding a new back-compatibility
requirement should not be done lightly, but only after broad consensus is
reached through patient discussion.
> Implement Externalizable in main top level searcher classes
> -----------------------------------------------------------
>
> Key: LUCENE-1473
> URL: https://issues.apache.org/jira/browse/LUCENE-1473
> Project: Lucene - Java
> Issue Type: Bug
> Components: Search
> Affects Versions: 2.4
> Reporter: Jason Rutherglen
> Priority: Minor
> Attachments: LUCENE-1473.patch
>
>
> To maintain serialization compatibility between Lucene versions, major
> classes can implement Externalizable. This will make Serialization faster
> due to no reflection required and maintain backwards compatibility.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]