Duplicate :
|
|
Relates :
|
If Bean properties are initialized with static values, XMLEncoder.writeObject sometimes writes out nonsense. So XMLDecoder.readObject can't read the Java bean correctly and produces incorrect output. See JDK-8016545 for details.