Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: wordsmithing

When a nonfinal class defines a clone() method that fails to call super.clone(), cloning a subtype subclass of this class will produce an object of the wrong typeclass.

The Java API for the clone() method [API 2011] says:

...