default methods: check for super class is now needed (IDEA-122720)

This commit is contained in:
Anna Kozlova
2014-03-26 12:12:46 +01:00
parent 2dd7e9258e
commit 72203e26ef
4 changed files with 24 additions and 2 deletions

View File

@@ -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>();
}
}