Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.1-rc-1
-
Fix Version/s: 1.1-rc-2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
using this script:
def foo(Number s){}
def foo(int i ){}
foo()
an exception is thrown whcih looks like:
Caught: groovy.lang.GroovyRuntimeException: Could not find which method to invoke from this list: org.codehaus.groovy.reflection.FastArray@9df354 for arguments: {}
groovy.lang.GroovyRuntimeException: Could not find which method to invoke from this list: org.codehaus.groovy.reflection.FastArray@9df354 for arguments: {}
the org.codehaus.groovy.reflection.FastArray@9df354 is wrong, at his place there should be a list of the available methods of that name that is foo(Number) and foo(int), but no toString default implementation. This text is important for the user to find an error.
the new message text is now something like this:
Could not find which method foo() to invoke from this list:
public java.lang.Object test#foo(int)
public java.lang.Object test#foo(java.lang.Number)