From: Archie Cobbs (archie@whistle.com)
Date: Thu Feb 11 1999 - 14:26:09 EST
Godmar Back writes:
> > Looks like they've fixed a bug in their implementation. Aren't
> > Strings in the Constant Table supposed to be interned by default? Or
> > it's just that I didn't really understand the interning difference?
>
> No, I don't think the JVM spec says anything about that. It's an
> implementation optimization, that's all.
The definition of the intern() method does require that
"aa".intern() == "aa"
however.. See:
http://java.sun.com/products/jdk/1.2/docs/api/java/lang/String.html#intern()
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:58:06 EDT