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

A non-abstract method does not override an abstract one

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      A DESCRIPTION OF THE PROBLEM :
      The desciption is not correct. A non-abstract method does not override an abstract one. The former implements the latter.
      -----
      When a non-abstract method overrides an abstract one, the former is also said to implement the latter.
      -----
      http://java.sun.com/javase/6/docs/api/javax/lang/model/util/Elements.html#overrides(javax.lang.model.element.ExecutableElement,%20javax.lang.model.element.ExecutableElement,%20javax.lang.model.element.TypeElement)
      http://java.sun.com/javase/6/docs/guide/apt/mirror/com/sun/mirror/util/Declarations.html#overrides(com.sun.mirror.declaration.MethodDeclaration,%20com.sun.mirror.declaration.MethodDeclaration)

      -----
      If the method not inherited is abstract, then the new declaration is said to implement it; if the method not inherited is not abstract, then the new declaration is said to override it.
      -----
      http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.4.3

        See also http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6399361


      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/javase/6/docs/api/javax/lang/model/util/Elements.html#overrides(javax.lang.model.element.ExecutableElement,%20javax.lang.model.element.ExecutableElement,%20javax.lang.model.element.TypeElement)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sseligmasunw Scott Seligman (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: