JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... Because of verifier limitations, the compiler cannot arrange to initialize synthetic fields like this$0 and val$array before the superclass ...
Feb 5, 1997 ... Because of verifier limitations, the compiler cannot arrange to initialize synthetic fields like this$0 and val$array before the superclass ...
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 : When an array for which a getter/setter exists is made public, it is completely ignored by XMLEncoder.writeObject(). The same is not true for base data types and objects: they are written to the XML file, although producing different xml output than in 1.6.
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".