Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.8
-
None
Description
class C { private C() {} private privateMethod() {} def anonymousUsage() { new Runnable() { @groovy.transform.CompileStatic @Override void run() { privateMethod() new C() } } } }
Expected: code is compiled without errors.
Actual: 2 errors:
Cannot call private method C#privateMethod from class C$1
Cannot call private constructor for C from class C$1
Note that Java compiles the same code just fine.
Attachments
Issue Links
- links to