🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Serializing an evolving class

#3517
From: Alex Elkin
Date: Fri, 12 Dec 1997 00:00
21 lines
1185 bytes
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: <3491C10B.14A2B26A@IntelliFrame.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

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