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. Guideline Rule "MET04-J. Ensure that constructors do not call overridable methods" describes similar programming errors.

...