JDK-6563146 : javac should issue a warning for calling overridable methods in a constructor, clone, or readObject
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2007-05-29
  • Updated: 2020-09-04
Related Reports
Relates :  
Relates :  
Description
As discussed in "Effective Java," a programming restriction on code that returns new objects (constructors, clone, and readObject) is not calling overridable methods.  To catch this non-obvious condition, javac could issue a warning if this occurs.