bugs.java.com
JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... ... method would return a value which would be immediately converted ... code are TBD, but see static methods above for an example. Source ...
Jul 12, 2016 ... ... method would return a value which would be immediately converted ... code are TBD, but see static methods above for an example. Source ...
This behaviour is totally independent of OS, Java Version, VM type etc. It's an error in java.lang.String source code which is the same for all JDK distributions.Create String from char array, release dummy char array. String longString = new String(bigCharArray)