java: highlight static import if interface method is not accessible (IDEA-262496)

GitOrigin-RevId: 8e45087f2b8a95b9333f835eb2779fac1b6fb764
This commit is contained in:
Anna Kozlova
2021-02-19 11:02:17 +01:00
committed by intellij-monorepo-bot
parent ba64a1152a
commit 89bf390fb1
4 changed files with 51 additions and 22 deletions

View File

@@ -0,0 +1,7 @@
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>
}
}