Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6563146

javac should issue a warning for calling overridable methods in a constructor, clone, or readObject

XMLWordPrintable

    • generic
    • generic

      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.

            Unassigned Unassigned
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: