Extra serialisation bugs

View: New views
1 Messages — Rating Filter:   Alert me  

Extra serialisation bugs

by Thomas Hawtin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's a couple of serialisation bugs I think should go in. They don't
really cause immediate problems, but they make further maintenance/use
more difficult.

  * non-private readResolve/writeReplace should declare
ObjectStreamException

Much the same justification as finalize throwing Throwable (which
looking through the bug descriptions is another missing bug).

  * readObject/writeObject should call
defaultReadObject/readFields/defaultWriteObject/putFields

Missing calling one of these methods messes up the serial format.

Tom Hawtin
_______________________________________________
Findbugs-discuss mailing list
Findbugs-discuss@...
https://mailman.cs.umd.edu/mailman/listinfo/findbugs-discuss
LightInTheBox - Buy quality products at wholesale price!