-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
Affects Version/s: 21
-
Component/s: core-libs
-
None
In this example, Elements.hides(D::m, C::m) returns true:
% cat pkg/{D,C}.java
package pkg;
public interface D extends C {
public static void m() { }
}
package pkg;
public interface C {
public static void m() { }
}
From my reading of JLS 8.4.8.2. Hiding (by Class Methods), that should be false: "If A is an interface, m' is an instance method."
% cat pkg/{D,C}.java
package pkg;
public interface D extends C {
public static void m() { }
}
package pkg;
public interface C {
public static void m() { }
}
From my reading of JLS 8.4.8.2. Hiding (by Class Methods), that should be false: "If A is an interface, m' is an instance method."
- duplicates
-
JDK-8275746 Elements.hides and static interface methods
-
- Open
-
- relates to
-
JDK-8275746 Elements.hides and static interface methods
-
- Open
-
- links to