...
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" |
...