🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3518

Re: Serializing an evolving class

#3518
From: Alex Elkin
Date: Fri, 12 Dec 1997 00:00
30 lines
1499 bytes
Sorry for taking you time, though it took me couple hours to figure out. The
JBuilder help names the variable SerialVersionUID,  but it should be
serialVersionUID. That's why it didn't work.

Thanks again.

Alex Elkin.


> Hi,
>
> could somebody shed some light to the issue of serializing an evolving
> class. I'm trying to add couple fields to a class that has been already
> serialized. The JBuilder on-line help says:
>
>    The stream format of each class is identified by the use of a Stream
> Unique Identifier (SUID). By default, this is the hash of the class. All
> later versions of the
>    class must declare the Stream Unique Identifier (SUID) that they are
> compatible with. This guards against classes with the same name that
> might inadvertently
>    be identified as being versions of a single class.
>
> 1. How could I specify this SUID?
> 2. Is there any other way to let class evolve? According to the
> Serializable doc it should work.
>
> Thank you.
> Alex Elkin.
Technical Details
Message-ID: <3491CCE7.CBE45117@IntelliFrame.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3491C10B.14A2B26A@IntelliFrame.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,6228e4adef68a26d
X-Google-Attributes: gid1089d0,public
From: Alex Elkin <Alex_Elkin@IntelliFrame.com>
Subject: Re: Serializing an evolving class
Date: 1997/12/12
Message-ID: <3491CCE7.CBE45117@IntelliFrame.com>
X-Deja-AN: 297691909
References: <3491C10B.14A2B26A@IntelliFrame.com>
Organization: IntelliFrame Corporation
Reply-To: Alex_Elkin@IntelliFrame.com
Newsgroups: borland.public.jbuilder.java.api