> Hi,
>
[quoted text clipped - 7 lines]
>
> & it worked! :)
Although this is a good solution, maybe
static final long serialVersionUID = 1L;
would be better :-)
The meaning of serialVersionUID, by the way, is that you are able to
identify different versions. You should think of a numbering convention.
Just using random numbers might give you a problem.
Tor Iver Wilhelmsen - 27 Sep 2006 18:07 GMT
> The meaning of serialVersionUID, by the way, is that you are able to
> identify different versions. You should think of a numbering
> convention. Just using random numbers might give you a problem.
Well, "identify" as in "get an annoying exception instead of the
actual data". So adding serialVersionUID becomes a necessary nuisance.
A useful versioning field would be instance data, and you could test
on it in redObject() and/or writeObject() and act accordingly (e.g. by
"upgrading" the data to ra new version before passing it on).