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

A non-abstract method does not override an abstract one

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6
    • core-libs

      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)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: