Versions Compared

Key

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

...

The developer of the subclass was unaware of the implementation details of Calendar.after() and incorrectly assumed that the superclass's after() method would invoke only its own methods without invoking overriding methods from the subclass. Rule "MET04-J. Ensure that constructors do not call overridable methods" describes similar programming errors.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ce3f49fcc0c43bff-f669ec09-46014d73-ba0fa2f9-c795438b291e3f6ff45b92a1"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 06]]

[Class Calendar

http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0f0324ba2f91e334-7cd8e3f1-42c0415f-989e9f45-080c02dfcbea1376ad7165e4"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. Bibliography#Bloch 08]]

Item 16: "Favor composition over inheritance"

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fbdb05195e715d7e-3c65f48a-42d7479a-8a72bffc-5ee0f5b65c96928f3f2d1761"><ac:plain-text-body><![CDATA[

[[Gamma 1995

AA. Bibliography#Gamma 95]]

Design Patterns: Elements of Reusable Object-Oriented Software

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="690910b7ec603db6-88fb1b40-41b14403-89f0b3d7-79f538c7defde8df45b0bb67"><ac:plain-text-body><![CDATA[

[[Lieberman 1986

AA. Bibliography#Lieberman 86]]

Using prototypical objects to implement shared behavior in object-oriented systems

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f17d05815806311b-7ec7bc0a-463d490a-985ab58e-dd117e1ebcfb6b307bda1ac1"><ac:plain-text-body><![CDATA[

[[SCG 2007

AA. Bibliography#SCG 07]]

Guideline 1-3 Understand how a superclass can affect subclass behavior

]]></ac:plain-text-body></ac:structured-macro>

...