-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
7
-
generic
-
generic
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
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
- relates to
-
JDK-8202056 Expand serial warning to check for bad overloads of serial-related methods and ineffectual fields
-
- Resolved
-
-
JDK-8160675 Issue lint warning for non-serializable non-transient instance fields in serializable type
-
- Resolved
-