JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... ... strings, and method handles. As `invokedynamic` instructions become ... data); } Language bindings for creating such a thing in source ...
Jul 12, 2016 ... ... strings, and method handles. As `invokedynamic` instructions become ... data); } Language bindings for creating such a thing in source ...
Add _raw string literals_ to the Java programming language.A raw string literal opens with a sequence of one or more backticks. The raw string literal closes when a backtick sequence is encountered of equal length as opened the raw string literal.
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
Test.java:11: error: incompatible types: cannot infer type-variable(s) T,U.type-variable: CAP#1 extends String from capture of ? extends String 1 error. but if the lambda is implicit: e -> e.trim(), it compiles just fine.
The example below uses the Animator class from the /usr/local/java jsut to demonstrate the bug. Everything goes smoothly until defineClass() is called and fails ( tried on Windows as well as with Solaris 1.1.6 and 1.1.7) java.lang.ClassFormatError: Illegal constant pool type.
CPU: sparc. Submitted: 1996-12-10. Updated: 1997-10-23.SUGGESTED FIX Fix writeUTF to check the length of the string to be written.