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

Clarify Elements.overrides

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 23
    • 21
    • core-libs

    Description

      While strongly hinted, it's not strictly specified in JLS that interface methods whose signatures are override-equivalent to signatures of public, non-final methods of java.lang.Object do, in fact, override the latter.

      For example, java.lang.CharSequence#toString for practical purposes can be seen to override java.lang.Object#toString.

      Elements.overrides should clarify that in its specification, as it might not be obvious or clear from the references to JLS sections it makes.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              prappo Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: