Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by NavBot (vkp) v1.0

...

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

Risk Assessment

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

...

Wiki Markup
\[[API 2006|AA. Java References#APIBibliography#API 06]\] 
\[[SCG 2009|AA. Java References#SCGBibliography#SCG 09]\] Guideline 4-4 Prevent constructors from calling methods that can be overridden
\[[Bloch 2008|AA. Java References#BlochBibliography#Bloch 08]\] Item 17: "Design and document for inheritance or else prohibit it"

...