switch context when get to anonymous class so access to the inherited members should not be raised as a conflict

This commit is contained in:
Anna Kozlova
2015-01-20 11:13:06 +01:00
parent 0bec748d2f
commit 64894391ea
6 changed files with 64 additions and 6 deletions
@@ -0,0 +1,9 @@
package a;
import b.B;
public class A extends B {
protected static void bar(){}
public static class I {
protected void foo(){}
}
}
@@ -0,0 +1,14 @@
package b;
import a.A;
public class B {
void method2Move() {
new A.I() {
{
foo();
A.bar();
}
}
}
}