mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
default methods: check for super class is now needed (IDEA-122720)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
interface I {
|
||||
default void f() {}
|
||||
}
|
||||
|
||||
class P {
|
||||
public void f() {}
|
||||
}
|
||||
|
||||
class AP extends P implements I {
|
||||
@Override
|
||||
public void f() {
|
||||
I.super.f();
|
||||
}
|
||||
}
|
||||
|
||||
class AC implements Cloneable {
|
||||
|
||||
public Object clone() throws CloneNotSupportedException {
|
||||
return Cloneable.super.<error descr="'clone()' has protected access in 'java.lang.Object'">clone</error>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user