JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... Middle(Outer) // constructor for Outer.Middle 0 aload_0 1 aload_1 2 ...
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... Middle(Outer) // constructor for Outer.Middle 0 aload_0 1 aload_1 2 ...
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)
export/kvn/jdk6u25/fastdebug/bin/java -server -XX:+UnlockDiagnosticVMOptions -XX:-UnrollLimitCheck -XX:CICompilerCount=1 -Xbatch -Xcomp t # #. A fatal error has been detected by the Java Runtime Environment
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
Should be: NoSuchElementException. Result is correct if remove(0) is called, or if LinkedList is used. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See source code`.It's likely this behaviour was observable from Java 7 and perhaps earlier.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Attempt to compile the following class under Java 7: import java.util.List; import java.util.SetERROR MESSAGES/STACK TRACES THAT OCCUR : See "actual result".