-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
6
-
x86
-
windows_xp
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)
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)
- relates to
-
JDK-5008260 @Override should be generalized from 'superclass' to 'supertype'
- Closed
-
JDK-6399361 CONFORMANCE: @Override specification and compiler inconsistent
- Closed
-
JDK-6424261 Description of "override" in JLS 3 section 6.4.3 is misleading.
- Closed