Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SER09-EX0: The readObject() method may invoke the overridable methods defaultReadObject() and readFields() in class java.io.ObjectInputStream [SCG 2009].

Risk Assessment

Invoking overridable methods from the readObject() method can lead to initialization errors.

...

Secure Coding Guidelines for the Java Programming Language, Version 3.0

Guideline 4-4. Prevent constructors from calling methods that can be overridden

Bibliography

[API 2006]

 

[Bloch 2008]

Item 17. Design and document for inheritance or else prohibit it

...

      Rule 14: Serialization (SER)Image Added