🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Trouble reading back a serialized object

#750
From: George
Date: Mon, 16 Dec 2002 20:23
14 lines
1377 bytes
My class has two sets of data members:  a protected TreeMap and a bunch of
protected final Strings.

I want only the TreeMap object to be serialized.  However the TreeMap
contains entries for which the Strings are the keys.

In debugging the readObject method I find that whenever this method has been
called the protected String members of the class always get set to null
(even tho they are declared final and initialized in the declaration
statement).

Why is this happening?  What am I doing wrong?

Thanks.
Technical Details
Message-ID: <3dfe363c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,68acc6f7611760b3,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-12-16 12:28:06 PST
From: "George" <geo54321@hotmail.com>
Newsgroups: borland.public.jbuilder.java.api
Subject: Trouble reading back a serialized object
Date: Mon, 16 Dec 2002 15:23:23 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 65.209.76.208
Message-ID: <3dfe363c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1040070204 65.209.76.208 (16 Dec 2002 12:23:24 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail