Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2
-
Fix Version/s: 1.8.3, 1.9-beta-4, 1.7.11
-
Component/s: Compiler
-
Labels:None
-
Number of attachments :
Description
For example, in the following code the closure variable is incorrectly bound to the method parameter, resulting in the absence of an (Object, Object) constructur and the presence of an (Object, Object, Reference) constructor for the closure:
@Foo({ value })
def doit(value) {}
Also see http://groovy.329449.n5.nabble.com/Annotation-closure-not-behaving-as-expected-td4821286.html