[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: String/Hashtable bootstrapping problem
From: |
John Leuner |
Subject: |
Re: String/Hashtable bootstrapping problem |
Date: |
Fri, 13 Jul 2001 16:41:58 +0000 |
User-agent: |
Mutt/1.3.15i |
> > I have encountered a problem trying to initialize the String and Hashtable
> > classes. Here's the problem:
> >
> > - Hashtable uses String constants like "loadFactor" and "threshold" which
> > are initialized in Hashtable.<clinit>.
> > - String constants are supposed to have unique values, as ensured
> > by String.intern. Thus, for String constant pool entries, I call
> > String.intern.
> > - String.intern makes use of String.internTable, which is a Hashtable,
> > and which is initialized in String.<clinit>.
>
> In a later message,
> > I'm talking about these lines from java.util.Hashtable:
> >
> > // used for serializing instances of this class
> > private static final ObjectStreamField[] serialPersistentFields =
> > { new ObjectStreamField("loadFactor", float.class),
> > new ObjectStreamField("threshold", int.class) };
>
> I'm a little late entering this conversation, but how about this for a
> solution?
Since the CVS version of Hashtable doesn't have these fields, won't this
problem go away automatically?
John Leuner