mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
java8: static method with body is allowed in interface (IDEA-100334)
This commit is contained in:
@@ -50,7 +50,7 @@ class D {
|
||||
}
|
||||
|
||||
interface IllegalMods {
|
||||
<error descr="Illegal combination of modifiers: 'static' and 'abstract'">static</error> void m1();
|
||||
<error descr="Static methods in interfaces should have a body">static void m1()</error>;
|
||||
<error descr="Illegal combination of modifiers: 'static' and 'default'">static</error> void m2() default { }
|
||||
<error descr="Illegal combination of modifiers: 'static' and 'default'">static</error> <error descr="Illegal combination of modifiers: 'default' and 'static'">default</error> void m3() { }
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
interface Foo {
|
||||
public static void bar1() {}
|
||||
public <error descr="Illegal combination of modifiers: 'abstract' and 'static'">abstract</error> static void bar2() {}
|
||||
}
|
||||
Reference in New Issue
Block a user