mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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:
+9
@@ -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(){}
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package b;
|
||||
|
||||
import a.A;
|
||||
|
||||
public class B {
|
||||
void method2Move() {
|
||||
new A.I() {
|
||||
{
|
||||
foo();
|
||||
A.bar();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user