commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
Subject Re: [math] serialVersionUID
Date Sat, 06 Aug 2011 17:00:00 GMT
On 8/6/11 5:21 AM, Jörg Schaible wrote:
> Sébastien Brisard wrote:
>> Hi,
>> I've just realized that many classes I've submitted do not define
>> serialVersionUID, which raises a warning. I have to say that it's
>> something I've never done myself, but I'd like to avoid the committers
>> the burden of inserting this. What's the rule for chosing this number?
>> (sorry for the silly question).
> I started to use YYYYMMDD e.g. to day I would take 20110806L. It gives me a 
> hint when the number was chosen resp. binary compatibility was last broken.

Sounds reasonable.  Most of the earlier classes in [math] use the
ids generated by the JDK utility serialver.   I think Eclipse will
do that automatically, which is fine by me.  I am also OK with
Jorg's suggestion or James' (though in the latter case, I would
favor 42l - even though I am 42R ;).   The important thing is to put
something there and change it when a serialization incompatible
change is made to the class.

> - Jörg
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message