Details
- 
        Type:
 Bug
            
         - 
        Status:
 Closed
            
                     - 
            Resolution: Fixed
 - 
            Affects Version/s: None
 - 
            Fix Version/s: 1.1.1
 - 
            Component/s: None
 - 
            Labels:None
 
Description
Due to an optimization in XStream to produce tighter XML, the <default/> element written from ObjectOutputStream.defaultWriteObject() (from an object's custom writeObject() method) is skipped if there are no fields to write inside it.
However this causes a failure when the ObjectInputStream.defaultReadObject() is called as it expects to find some content.