> From: Dola Woolfe [mailto:[EMAIL PROTECTED]
> Subject: Re: InvalidClassException between Tomcat and Eclipse
>
> Can you explain the idea behind serialVersionUID
AFAIK, its primary purpose is to insure that the deserialized object is
compatible with the the current clas
Thanks.
Can you explain the idea behind serialVersionUID (or
point to a link)?
It seems (under ideal circumstances and not what I was
conerned with previously) that if the classes are
legitimately out of sync and I don't set it, I will
get an exception saying that serialVersionUID is
mismatched.
It is also affected by the compiler version.
It is most advisable to add serialVersionUID
Yuval Perlov
www.r-u-on.com
On May 17, 2008, at 7:16 AM, Dola Woolfe wrote:
Hi,
I get
java.io.InvalidClassException
when I send a serialized class from an application
launched by Eclipse to a JSP page,
Hi,
I get
java.io.InvalidClassException
when I send a serialized class from an application
launched by Eclipse to a JSP page, compiled by the
server.
I thought that serialVersionUID was strictly a
function of members, signatures, etc - but that
doesn't appear to be the case.
A workaround is to