> From: Vojta Filip [mailto:[EMAIL PROTECTED]]
>
> And the second problem - internal Strings. I have method intern()
> implemented in VM (native), because I want the behavior of java 1.2 -
> static strings are interned. I have my internal hash table and I can put
> any static string when one is created (but with Classpath I must call
> intern() or do intern native and use my internal hashtable).
>

Is there trouble calling intern()?  Is it going to be more efficient to do
it in the VM instead?  I hesitate to make it a VM thing if there is not a
real benefit to doing it.  Adding to the interface complicates things for
future implementors.  (Though String.intern() could be implemented in the
reference implementation to just use the Hashtable like it is doing now.)

--John

Reply via email to