geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heinz Drews" <heinz.dr...@gmail.com>
Subject Standard for serialVersionUID
Date Thu, 31 Aug 2006 05:46:17 GMT
As I have mentioned in another message I have accidently used class
files in modules created by Eclipse embeded compiler.  This calculates
serialVersionUID different way then javac.

I think that adding serialVersionUID to all serializable class would
address the situation best.
There are quite a number of class without the uid.  I would volunteer
to add them but which standard should be used?

Eclipse provides the option set it to 1 or  to calculate the uid. But
the calculation is different to the one doen by javac.

In other projects I have found the convention to use version number to
support detection of incompatible modifications.  The version number a
much nicer to read in the message reporting mismatches than the
generated ones.

Least impact would be to calculate the value with the serialver tool.
This avoids the need for redeploying.

Which standard should be chosen?

--Heinz

Mime
View raw message