lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rutherglen" <jason.rutherg...@gmail.com>
Subject Re: serialVersionUID issue between 2.3 and 2.4
Date Tue, 02 Dec 2008 15:42:08 GMT
I prefer Externalizable as well as it makes Serialization faster.  Perhaps
also for Query and it's subclasses to start?  I had code to do this for
Analyzer as well which could be useful, perhaps a different patch though.

On Tue, Dec 2, 2008 at 2:22 AM, Michael McCandless <
lucene@mikemccandless.com> wrote:

>
> Karl Wettin wrote:
>
>  As for statically setting a serialVersionUID in the class, one could
>> instead set it to a final value and implement Externalizable in order to
>> keep binary compatibility between class versions that contains more changes
>> than what the Serializable reflection support code can handle. That would
>> also save a few clock ticks. All over I think that is a much better
>> solution.
>>
>
> I like this solution -- it makes the serialization / deserialization
> explicit.
>
> Jason can you open a Jira issue & work out a patch for this?
>
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message