-
Bug
-
Resolution: Fixed
-
P3
-
9, 10
-
b03
-
generic
-
generic
Supposing we have
interface I { public static void m(){} }
public class C implements I { public static void m(){} }
then javax.lang.model.util.Elements.hides(C.m, I.m) is false but the expected result is true, according to JLS 8.4.8.2
This is likely to be a regression caused by fix forJDK-8005166, what happens is at
http://hg.openjdk.java.net/jdk10/jdk10/langtools/file/5e5a17a1d918/src/jdk.compiler/share/classes/com/sun/tools/javac/model/JavacElements.java#l626
was being dispatched to the ClassSymbol.isInheritedIn, but withJDK-8005166 it is being dispatched to the overriden method in MethodSymbol, which does something else.
jtreg based test case as a hg patch attached.
This should have been caught by a JCK test and needs to be fixed in that set as well.
interface I { public static void m(){} }
public class C implements I { public static void m(){} }
then javax.lang.model.util.Elements.hides(C.m, I.m) is false but the expected result is true, according to JLS 8.4.8.2
This is likely to be a regression caused by fix for
http://hg.openjdk.java.net/jdk10/jdk10/langtools/file/5e5a17a1d918/src/jdk.compiler/share/classes/com/sun/tools/javac/model/JavacElements.java#l626
was being dispatched to the ClassSymbol.isInheritedIn, but with
jtreg based test case as a hg patch attached.
This should have been caught by a JCK test and needs to be fixed in that set as well.
- blocks
-
JDK-8186693 Doclet's utils.executableMembersEqual can be simplified
-
- Open
-
- relates to
-
JDK-8186703 javadoc needs a test to verify member hiding
-
- Resolved
-