Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.4
-
Fix Version/s: 1.8.6, 2.0-beta-3
-
Component/s: None
-
Labels:None
-
Number of attachments :
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
---------------------------------------------