Push Down: super should not access over hierarchy (IDEA-20816)

This commit is contained in:
anna
2010-01-28 19:36:53 +03:00
parent b5bb81cdfd
commit 79cf445952
6 changed files with 126 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
class A {
void k() {
System.out.println(23);
}
}
class B extends A {
void k() {
System.out.println(42);
}
void <caret>m() {
new C() {
void foo() {
super.k();
}
};
}
}
public class C extends B {
public static void main(String[] args) {
new C().m();
}
}