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...
Activity
Guillaume Laforge
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.0-RC-1 [ 12104 ] | |
| Fix Version/s | 1.0-JSR-6 [ 12103 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.0-RC-1 [ 12104 ] | |
| Fix Version/s | 1.0-final [ 10244 ] |
blackdrag blackdrag
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
fixed