AliSherKashif / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Constant pool strings are not interned #1337

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The current intern() functionality of String doesn't implicitly include strings 
that are part of the global constant pool. Adding that call into the 
initConstantPool() method was disastrous since that code can be invoked before 
the String class is initialized. This needs to be done at a later stage or 
maybe dynamically as part of the intern method.

Original issue reported on code.google.com by shai.almog on 6 Feb 2015 at 11:28