Details
-
Bug
-
Resolution: Fixed
-
P3
-
8, 8-repo-lambda
-
b82
Description
This program should not compile:
interface I {
void zoo(Y y, String s);
}
class Y {
void zoo(String s) {
System.out.println("Y.zoo(String)");
}
void zoo(Y y, String s) {
System.out.println("Y.zoo(Y, String)");
}
}
public class X {
public static void main(String[] args) {
I i = Y::zoo;
i.zoo(null, null);
}
}
interface I {
void zoo(Y y, String s);
}
class Y {
void zoo(String s) {
System.out.println("Y.zoo(String)");
}
void zoo(Y y, String s) {
System.out.println("Y.zoo(Y, String)");
}
}
public class X {
public static void main(String[] args) {
I i = Y::zoo;
i.zoo(null, null);
}
}
Attachments
Issue Links
- relates to
-
JDK-8231461 static/instance overload leads to 'unexpected static method found in unbound lookup' when resolving method reference
- Resolved