<Swing Dev> JDK 9 RFR of JDK-8033221: Fix serial lint warnings in sun.swing.*
    Tom Hawtin 
    tom.hawtin at oracle.com
       
    Thu Jan 30 19:36:48 UTC 2014
    
    
  
On 30/01/2014 13:05, Sergey Bylokhov wrote:
> It seems to me that in this fix we actually suppress a bugs. These
> classes can be extended from the public classes, and can be assigned to
> the parent.
> If serialization of these classes are not supported, we should block it
> via readObject+writeObject with assertion error, if it is supported it
> should be implemented.
+ readObjectNoData. Correctly spelt serialPersistenFields as an array 
containing null appeared to be most effective, though implementation 
dependent.
Really the legacy serialisation mechanism should be extended with a 
@NotActuallySerializable annotation. Apply that to sun.swing.-, 
com.sun.swing.-, javax.swing.- and others.
Tom
    
    
More information about the swing-dev
mailing list