VisionSet said:
I think the answer is no, but can you handle objects created by 1.4
compiled code in 1.5 code?
I want 1.4 on the client and 1.5 on the server and yes I serialise
objects between the two. Bad I know.
So long as you use serialVersionUID and your object classes are not from
Swing or are anonymous or local inner classes, you should be fine.
Swing doesn't guarantee to keep compatibility between major releases.
3rd Ed JLS pins down generated names of inner classes better than
previous editions, but does not completely match earlier compiler
behaviour (and you are strongly discourage in the spec).
IIRC, between certain versions, javac produces different methods/fields
used in the calculation of serialVersionUID. Things like class constants
and static initialisers may change. So specifying the UID is a good idea.
Tom Hawtin