JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
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.
ADDITIONAL REGRESSION INFORMATION: I did not perform full regression testing, only confirmed that the problem does not occur with a Java 7 compiler (1.7.0_80). STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile the attached source code with javac.