Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-5
-
Fix Version/s: 1.0
-
Component/s: class generator
-
Labels:None
-
Number of attachments :
Description
are method closures supposed to work on static
mehtods?
interestingly, this works:
class Bla {
static void foo(it)
}
def x = new Bla()
[1].each x.&foo
----
but this doesn't
----
class Bla {
static void foo(it) { println it}
}
[1].each Bla.&foo
fails with
groovy.lang.MissingMethodException: No signature of method
java.lang.Class.foo() is applicable for argument types: (java.lang.Integer)
values:
looks like a bug in the class genererator
for method closure expressions...
fixed