Warren Levy <[EMAIL PROTECTED]> writes:

> I notice that some classes that explicitly set a serialVersionUID value
> were written by Brian Jones; perhaps he can shed some light on things.

Essentially in a lot of places we don't use exactly the same name,
number, and type of variables or methods.  Overriding whatever value
would be computed from our classes to match Sun's is required for
serialized compatibility with objects serialized with their
implementation.  This is also why you'll see more
readObject/writeObject type stuff in our code.  We explicitly did not
want to use exactly the same names Sun did either in non API variable
names... where variable or method names are the same is only for API
compatibility.

I did some grunt work a long while ago to make quite a few classes
match Sun for serialization including the serialVersionUID.  I
probably didn't finish it and more than likely there is plenty of
stuff that needs it still.

Take a look at bug #4180839 regarding compatibility with Sun's
serialization.

Brian
-- 
Brian Jones <[EMAIL PROTECTED]>

Reply via email to