Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.7
-
None
Description
The following code:
@groovy.transform.CompileStatic class A { public static final CONST = "a" public static List doSomething() { return (0..1).collect{ int x -> (0..1).collect{ int y -> return CONST } } } } A.doSomething()
fails with this compilation error:
Access to java.lang.Object#CONST is forbidden at line: -1, column: -1