[ 
https://issues.apache.org/jira/browse/LUCENE-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652899#action_12652899
 ] 

Mark Miller commented on LUCENE-1473:
-------------------------------------

bq. 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?

There will be complaints no matter what. GWT tried getting around people having 
to implement Serializable by providing an interface with fewer promises: 
isSerizable. Many complained right away, as they had other classes that perhaps 
they where making Serializable simply for Apache XMLRpc or something. So now 
you can use either Serializable or isSerialiazble.

Personally, I think its fine to do as we are. I'm not against supporting more 
though. 

If we choose not to go further (and from what I can tell that decision has 
*not* yet been made yet, against or for) add to the javadocs about what we 
support, as I don't think its a bug myself. The Serializable interface 
indicates that the class and its subclasses will be Serializable, my reading of 
the javadoc does not indicate what cross version compatibility must be 
supported. I believe that is up to the implementor.

- Mark

> 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]

Reply via email to