JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... The code 2 has been held open under the name CONSTANT_Unicode but has never been used, probably because of the wide adoption of UTF8 for string ...
Jul 12, 2016 ... The code 2 has been held open under the name CONSTANT_Unicode but has never been used, probably because of the wide adoption of UTF8 for string ...
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.
A DESCRIPTION OF THE PROBLEM : The compiler fails to compile a piece of valid Java code: Give the following Stream. Stream<String> items = Arrays.asList("1","2","3","4","5").stream()The error the compiler generates when using the primitive integer version is the following
at com.intellij.rt.compiler.JavacRunner.main(JavacRunner.java:49) Error: line (0) The compiler did not terminate normally. Exit code is 4.EVALUATION Summary: If there are errors getting the entry, the return value is always 0. An error in this case could be out of memory, or a corrupt jar file.