JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non-local variables that are referenced in an anonymous class are not properly ...
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non-local variables that are referenced in an anonymous class are not properly ...
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.
The following test case demonstrates the problem. Run java -XX:CompileOnly=CharArrayCrash CharArrayCrash The program crashes in mixed or -Xcomp mode. Works fine with -Xint. Also works well on 6u37. Crashes on 7u67 and 8u11.
Use javap to inspect the resulting byte code. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The fields ENABLED and DISABLED should not be referenced in the code using getstatic instructions, but their constant value should have been resolved at compile time and used in code via ldc instructions.
Issue Details Provide as much information as you can here to help us understand the problem. You can add any confidential information (Java hs_err log files for example) to the "Confidential info" field. This information won't be included in the public bug report.
When an issue has been submitted successfully, a record gets created in the Java Incidents Database. After an initial triage process, it may be transferred to be an issue in the JDK project. When such a transfer occurs, an issue gets created in the Java Bug System (JBS) and a bug id, JDK-#######, will be emailed to you.