JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... This is a problem because Java allows subclass methods to be run from the superclass constructor. // ... code generation error in JDK 1.1.7B ...
Feb 5, 1997 ... This is a problem because Java allows subclass methods to be run from the superclass constructor. // ... code generation error in JDK 1.1.7B ...
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.
To download the current JDK release, click here.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
To download the current JDK release, click here.STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Attempt to compile the following class under Java 7: import java.util.List; import java.util.Set
The workaround is of course simple: Dont make your fields public. Unfortunately this is difficult when using software that is affected by this bug and for which no source code is available. It simply breaks when changing from Java 6 to Java 7 without giving any error messages.