lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: serialVersionUID issue between 2.3 and 2.4
Date Tue, 02 Dec 2008 02:11:33 GMT

Jason Rutherglen wrote:

>> if you don't set serialVersionUID yourself, then java assigns a
> rather volatile one for you
> True however the Java specification defines how the serialVersionUID  
> should
> be created in the event it's not defined.  The caveat being it's not
> strictly enforced and so Sun alternative compilers may decide to  
> change how
> it's created (from what I've read).  Base classes like Term and  
> Query don't
> change very often so we may want to settle on a serialVersionUID for  
> these
> top level classes.

Makes sense.  Besides having to remember to change the  
serialVersionUID, are
there any known downsides to setting it explicitly?

Lucene sets it for 2 sources now (RAMFile & RAMDirectory).

> Was a different compiler used for the 2.4 release compared to 2.3?

Likely, yes (two different people, Michael and Mike (me!), in  
different envs,
did the releases).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message