Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit c6f22b4

Browse files
committed
8297305: Clarify that javax.lang.model.util.Elements.overrides is irreflexive
Reviewed-by: jjg
1 parent bf78f71 commit c6f22b4

File tree

1 file changed

+2
-0
lines changed
  • src/java.compiler/share/classes/javax/lang/model/util

1 file changed

+2
-0
lines changed

src/java.compiler/share/classes/javax/lang/model/util/Elements.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@ default TypeElement getOutermostTypeElement(Element e) {
622622
* overrides another method.
623623
* When a non-abstract method overrides an abstract one, the
624624
* former is also said to <i>implement</i> the latter.
625+
* As implied by JLS {@jls 8.4.8.1}, a method does <em>not</em>
626+
* override itself. The overrides relation is <i>irreflexive</i>.
625627
*
626628
* <p> In the simplest and most typical usage, the value of the
627629
* {@code type} parameter will simply be the class or interface

0 commit comments

Comments
 (0)