-
Bug
-
Resolution: Fixed
-
P4
-
21
-
b08
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.
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.
- relates to
-
JDK-8304739 Elements.getAllMembers for an interface returns methods declared in java.lang.Object
-
- Open
-
- links to
-
Commit openjdk/jdk/b5995a76
-
Review(master) openjdk/jdk/17564