mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
java 8: forbid super in static methods
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
interface Super
|
||||
{
|
||||
default void method()
|
||||
{
|
||||
System.out.println("Super.method()");
|
||||
}
|
||||
}
|
||||
|
||||
interface Sub extends Super {
|
||||
static void foo() {
|
||||
<error descr="'Super' is not an enclosing class">Super.super</error>.method();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user