On Mon, 26 Apr 2021 14:12:01 GMT, Peter Levart <peter.lev...@gmail.com> wrote:
> Also be careful not to return a string which is not interned (which would happen if you did what you are proposing above). Ok, I'm probably missing something, but when we move `String.intern()` call to `this.packageName = pn.intern();` there is no case when non-interned String is returned: there's only one assignment to the field `packageName` and the value assigned is always interned, right? ------------- PR: https://git.openjdk.java.net/jdk/pull/3571