> 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

Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
VisionSet - 26 Jul 2006 11:13 GMT
> > I think the answer is no, but can you handle objects created by 1.4
> > compiled code in 1.5 code?
[quoted text clipped - 3 lines]
> 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.
Excellent, got it working now, thanks.
Now to sort out the "gui/threading/screwy rendering due no doubt to
something not occuring on the event thread that should be" problem.
Mike W