> > Do Sun have any plans for long term persistence of objects that have been
> > serialized? The serialization is a lovely idea, but the incompatibility
> > between different Jdk's, and recompiled objects, is a real pain.
>
> I don't know if this has been mentioned, but you can get compatibility
> between different compilers (jikes, javac) and JDKs, by explicitely
> setting the serialVersionUID of a serializable class. See Sun's JDK docs
> for lots of details.
Yes but note that there is no "magic" in that. If two classes really are
incompatible (i.e. stores data differently internally), it still won't be
compatible. Settings the serialVersionUID explicitly is useful for making
new versions of a class compatible with the old version, where the compiler
would normally generate a non-compatible version number, but you (the
programmer) know they *are* compatible, data-wise.
--
/ Peter Schuller
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
Key retrival: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.webprovider.com
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]