JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... ... string argument.) As with `invokedynamic ... method would return a value which would be immediately converted to the required type.
Jul 12, 2016 ... ... string argument.) As with `invokedynamic ... method would return a value which would be immediately converted to the required type.
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.
The following discussion gives two examplesIf you change the return type of all clone() methods in the Java library to the right type, it seem to me that it would not break the backward compatibility, except in the case of obvious programming error.
Duplicate : JDK-8066871 - java.lang.VerifyError: Bad local variable type - local final String.return key + value; } public static void main(String[] args) throws Exception {.