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.
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.
A DESCRIPTION OF THE PROBLEM : When an array for which a getter/setter exists is made public, it is completely ignored by XMLEncoder.writeObject().STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Run the main method from the class Fail as provided below.