classpath
[Top][All Lists]
Advanced

[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: Thu, 05 Jul 2001 22:06:09 +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>.

You are mistaken, these are primitive types (ints and floats).

The names of the members are Strings in the constant pool. 

I think you should handle this differently to String literals, you don't want 
to create a string object for every member name.

John Leuner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]