Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/interfaceMethods/StaticMethodOfInterfaceAccessibleThroughMethodReference.java
Tagir Valeev 9ff09939f1 [java-highlighting] fixes after recent changes in highlighting
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 5fbcd6d223a0ea3c04bc0d219cff125938470816
2025-01-31 15:31:12 +00:00

21 lines
470 B
Java

interface I {
static <Z> void foo() { }
}
class A implements I {
{
System.out.println(A./*c1*/<error descr="Static method may only be called on its containing interface">foo</error>());
Runnable r = A/*c2*/::<String><error descr="Static method may only be called on its containing interface">foo</error>;
System.out.println(r);
}
}
class B {
static void foo() {}
}
class C extends B {
{
Runnable r = C::foo;
}
}