Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2
-
Fix Version/s: 2.1.0-rc-1, 1.8.9, 2.0.7
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
myscript.groovy
ExpandoMetaClass.enableGlobally() Object[] myObjectArray = ['a', 'b'] as Object[] closure = { println 'closure running...' } closure(myObjectArray)
code $ groovy -version Groovy Version: 1.8.2 JVM: 1.6.0_26 code $ groovy myscript.groovy Caught: groovy.lang.MissingMethodException: No signature of method: myscript$_run_closure1.doCall() is applicable for argument types: (java.lang.String, java.lang.String) values: [a, b] Possible solutions: doCall(), doCall(java.lang.Object), call(), call([Ljava.lang.Object;), call(java.lang.Object), findAll() groovy.lang.MissingMethodException: No signature of method: myscript$_run_closure1.doCall() is applicable for argument types: (java.lang.String, java.lang.String) values: [a, b] Possible solutions: doCall(), doCall(java.lang.Object), call(), call([Ljava.lang.Object;), call(java.lang.Object), findAll() at myscript.run(myscript.groovy:9)
I have tested with versions all the way back to 1.7.0 and the exception is thrown for all the versions I tested.
If I remove the ExpandoMetaClass.enableGlobally(), the exception goes away.
I think this is related to http://jira.grails.org/browse/GRAILS-8002, though I am not sure why that problem just showed up in Grails 2.0-M2. I have not been able to reproduce it with Grails 1.3.7.
Activity
Paul King
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.8.3 [ 17657 ] | |
| Fix Version/s | 1.9-beta-4 [ 17656 ] | |
| Priority | Major [ 3 ] | Blocker [ 1 ] |
blackdrag blackdrag
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Jochen Theodorou [ blackdrag ] | |
| Fix Version/s | 1.7.11 [ 17244 ] | |
| Resolution | Fixed [ 1 ] |
Graeme Rocher
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.7.11 [ 17244 ] | |
| Fix Version/s | 1.9-beta-4 [ 17656 ] | |
| Fix Version/s | 1.8.3 [ 17657 ] | |
| Priority | Blocker [ 1 ] | Major [ 3 ] |
blackdrag blackdrag
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Fix Version/s | 1.8.3 [ 17657 ] | |
| Resolution | Fixed [ 1 ] |
blackdrag blackdrag
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
blackdrag blackdrag
made changes -
| Status | Reopened [ 4 ] | Resolved [ 5 ] |
| Fix Version/s | 1.8.9 [ 18778 ] | |
| Fix Version/s | 2.0.7 [ 19028 ] | |
| Fix Version/s | 2.1.0-rc-1 [ 19026 ] | |
| Fix Version/s | 1.8.3 [ 17657 ] | |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |