java resolve: don't stop on found static method of the interface (IDEA-225660)

if the call site' qualifier is incorrect

GitOrigin-RevId: 782629045050df08fed3cf554682b63db8c9e1a8
This commit is contained in:
Anna Kozlova
2019-10-29 21:24:20 +01:00
committed by intellij-monorepo-bot
parent ddf076a38c
commit d6297185ce
2 changed files with 24 additions and 3 deletions

View File

@@ -51,4 +51,19 @@ class StaticMethodInterfaceExample {
<error descr="Static method may be invoked on containing interface class only">T.staticMethod();</error>
}
}
}
class StaticMethodInterfaceExample2 {
interface MyInterface {
static void m(int a) { }
}
class MyClass {
void m() { }
class MyInnerClass implements MyInterface {
{
m();
}
}
}
}