harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zakharov, Vasily M" <vasily.m.zakha...@intel.com>
Subject RE: [classlib][swing] Serialization of Swing classes
Date Sat, 11 Nov 2006 16:57:40 GMT

Yes, there is some harm - someone could change the classes in future and
to change the serialVersionUID. Also adding serialVersionUID implies the
compatibility is important, which is not the case.

Vasily Zakharov
Intel Middleware Products Division

-----Original Message-----
From: Nathan Beyer [mailto:nbeyer@gmail.com] 
Sent: Saturday, November 11, 2006 7:48 AM
To: harmony-dev@incubator.apache.org
Subject: Re: [classlib][swing] Serialization of Swing classes

If there's no need for serialization compatability between VMs and
versions of a VM, then is there any harm in adding explicit
serialVersionUID fields?

On 11/10/06, Ivanov, Alexey A <alexey.a.ivanov@intel.com> wrote:
> Nathan, all,
> You shouldn't add explicit serialVersionUID because Sun explicitly
states that serialized form of Swing classes maybe incompatible with
future Swing releases. And there's no description of serialized form for
any Swing class.
> I'm pretty sure Harmony is not compatible with Sun classes with regard
to serialized from of Swing classes. And new fields can be added to a
class or removed, which will break the serialized form.
> See the Warning in JTree JavaDoc:
> The serialVersionUID declarations were intentionally missed.
> Regards,
> Alexey.
> P.S. Thanks for cleaning up the code to use parameterized types where
> I've looked through j.s.BasicSwingTestCase and restricted the type
parameter, as well as refactored the code accessing Swing components so
that it always runs on the Event Dispatch Thread. See
> Also I've cleaned up some classes where I fixed bugs:
> https://issues.apache.org/jira/browse/HARMONY-2089
> https://issues.apache.org/jira/browse/HARMONY-2119
> https://issues.apache.org/jira/browse/HARMONY-2121
> --
> Alexey A. Ivanov
> Intel EnterpriseSolutions SoftwareDivision

View raw message