Versions Compared

Key

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

Invoking overridable methods from the readObject() method can cause the overriding method to read the state of the subclass before it is fixed. This is because the base class is deserialized first, followed by the subclass. Also see the related guidelines VOID CON09-J. Do not invoke alien methods that rely on invariants protected by the same lock object and MET07-J. Do not invoke overridable methods on the clone under construction.

...