Versions Compared

Key

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

...

Code Block
bgColor#ccccff
private void readObject(final ObjectInputStream stream) throws 
    IOException, ClassNotFoundException {
  stream.defaultReadObject();
}

Exceptions

Wiki Markup
*SER11-EX1:* "The {{readObject}} methods will usually call {{java.io.ObjectInputStream.defaultReadObject}}, which is an overridable method." \[[SCG 2009|AA. Bibliography#SCG 09]\]. 

...

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

Rule Guideline

Severity

Likelihood

Remediation Cost

Priority

Level

SER11-J

low

probable

medium

P4

L3

...