mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
warn when accessing static method of interfaces in language levels prior to 1.8 (IDEA-134814)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
class Test {
|
||||
interface I {
|
||||
<error descr="Extension methods are not supported at this language level">static void foo() {}</error>
|
||||
}
|
||||
|
||||
abstract class IImpl implements I {}
|
||||
interface I2 extends I {}
|
||||
|
||||
{
|
||||
<error descr="Static interface method invocations are not supported at this language level">I.foo();</error>
|
||||
<error descr="Static interface method invocations are not supported at this language level">IImpl.foo();</error>
|
||||
<error descr="Static interface method invocations are not supported at this language level">I2.foo();</error>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user