Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.4
-
None
-
None
Description
Looks like accessing @Field fields inside closures has a problem. Please file a bug.
---------------------------------------------
import groovy.transform.Field
@Field pomProperties = [:]
"".each {
pomProperties[1] = 2
}
---------------------------------------------
fails with the same error.
---------------------------------------------
Caught: BUG! exception in phase 'class generation' in source unit 'C:\Temp\m2g.groovy' tried to get a variable with the name pomProperties
as stack variable, but a variable with this name was not created
---------------------------------------------