mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
accessibility of private method via anonymous classes fixed
This commit is contained in:
+9
-1
@@ -37,7 +37,7 @@ abstract class EnumPrivateMethodTest2 {
|
||||
private void firstMethod() {}
|
||||
}
|
||||
|
||||
class Test {
|
||||
class TestAnonymousContainer {
|
||||
private class Foo {
|
||||
private Foo() {}
|
||||
|
||||
@@ -45,4 +45,12 @@ class Test {
|
||||
new Foo(){};
|
||||
}
|
||||
}
|
||||
|
||||
class AB {
|
||||
private void foo(){}
|
||||
}
|
||||
|
||||
{
|
||||
new AB() {}.<error descr="'foo()' has private access in 'TestAnonymousContainer.AB'">foo</error>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user