Article View: borland.public.jbuilder.java.api
Article #695Re: Serialization in JB8 - Personal
From: John McGrath TeamB
Date: Wed, 19 Feb 2003 22:25
Date: Wed, 19 Feb 2003 22:25
31 lines
2325 bytes
2325 bytes
On Tue, 18 Feb 2003 13:36:27 -0500, George wrote:
> I tried running this application in JB 8 but I get serialization
> error when the file is written. I haven't changed anything in
> the source.
It would help to post the exact error message along with a traceback.
> Is there anything different about serialization in JDK 1.4?
Yes, but this would cause you problems deserializing the objects, not
with serializing them. But you asked, so:
If a serializable nested class contains explicit references to a
class object (for example, "Foo.class"), then the computed value
of the default serial version UID for both the nested class and
its enclosing class will be different in J2SE 1.3 and J2SE 1.4.
The difference is due to the fact that the computation of the
serial version UID is sensitive to modifications made in the
javac compiler between J2SE 1.3 and J2SE 1.4.
[ http://java.sun.com/j2se/1.4/compatibility.html ]
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.18bdca9ea6985be798be1b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsfeed0.news.atl.earthlink.net!news.atl.earthlink.net!out.nntp.be!propagator2-SanJose!in.nntp.be!news.matavnet.hu!newsfeed.matavnet.hu!news1.dtag.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e527dc7@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,37cb95c6b2352e4e X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-02-19 14:28:37 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: Serialization in JB8 - Personal Date: Wed, 19 Feb 2003 17:25:13 -0500 Message-ID: <MPG.18bdca9ea6985be798be1b@newsgroups.borland.com> References: <3e527dc7@newsgroups.borland.com> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 151.197.231.42 X-Trace: newsgroups.borland.com 1045693512 151.197.231.42 (19 Feb 2003 14:25:12 -0800) Lines: 31 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!207.217.77.43.MISMATCH!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsfeed0.news.atl.earthlink.net!news.atl.earthlink.net!out.nntp.be!propagator2-SanJose!in.nntp.be!news.matavnet.hu!newsfeed.matavnet.hu!news1.dtag.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail