reference to static method from interface: prefer static import context if provided (IDEA-130136)

This commit is contained in:
Anna Kozlova
2014-09-30 15:43:42 +02:00
parent 30b12e3e25
commit 3f940f370f
6 changed files with 59 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
import p.*;
import static p.Foo.bar;
import static p.Boo.*;
class FooImpl implements Foo, Boo {
public void baz() {
<error descr="Static method may be invoked on containing interface class only">foo();</error>
bar();
boo();
}
}