Based on the JDK1.3 JavaDocs this would seem to be correct. However, it has always seemed to me to be bad style to try to force values to be interned in this way as you're working around the JVM--perhaps as some kind of theoried performance improvement?
Think twice before relying on a function that is to tell the JVM what to do with its memory pool... you probably won't see much benefit anyway. David Hibbs, ACS Staff Programmer / Analyst American National Insurance Company > Anyone know whether > > public void setValue(String value) { > this.value = value.intern(); > } > > sets the this.value to a pooled String? I am trying to avoid > a separate > call to intern() after setting the value. Thanks. > > Michael McGrady --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]