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

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: