resolve/overload resolution: collect static methods of interface called on foreign class/instance but filter them out during overload resolution (IDEA-145187)

This commit is contained in:
Anna Kozlova
2015-09-17 13:42:45 +03:00
parent bf3fecbb61
commit 99a54a3e76
3 changed files with 76 additions and 0 deletions
@@ -0,0 +1,23 @@
interface A {
static void foo110() {}
}
abstract class B implements A {
static void foo110(String... strs){
System.out.println(strs);
}
static void bar110(){}
}
abstract class C extends B {
static void bar110(String... strs){
System.out.println(strs);
}
}
class D {
public static void main(String[] args) {
B.foo110();
C.bar110();
}
}