Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/interfaceMethods/StaticMethodAccessibleThroughInheritance.java
Anna Kozlova 89bf390fb1 java: highlight static import if interface method is not accessible (IDEA-262496)
GitOrigin-RevId: 8e45087f2b8a95b9333f835eb2779fac1b6fb764
2021-02-19 18:20:18 +00:00

7 lines
268 B
Java

import static p.Foo.FooEx.<error descr="Static method may be invoked on containing interface class only">foo</error>;
class FooImpl {
public void baz() {
<error descr="Static method may be invoked on containing interface class only">foo();</error>
}
}