Relates :
|
|
Relates :
|
The serialization specification defines several correctness properties of readObject and and writeObject methods. For example, for writeObject "Either ObjectOutputStream's defaultWriteObject or writeFields method must be called once (and only once)..." [1] The -Xlint:serial checking of javac could be expanded to analyze the bodies of serialization methods for these properties. [1] http://download.oracle.com/javase/6/docs/platform/serialization/spec/output.html#861
|