Re: Problem with PropertyName equals() when using JNDIPrincipalStore
Roland Weber <[email protected]> Thu, 28 Jun 2007 16:56:52 +0200
| Newsgroups | gmane.comp.jakarta.slide.devel |
|---|---|
| Message-ID | <[email protected]> |
Martin Kalén wrote: > in the Slide > class PropertyName, all the String objects are interned in the > constructor. That sounds like a potential memory leak to me. > The Java specification states that two interned strings a and b are > guaranteed to give a==b true when a.equals(b) is true. Then either the intern'd strings keep piling up in memory, or at some point the JVM decides to throw some of them out and the == begins to fail. cheers, Roland