When binding a restarg method, display useful error if rest != true or else 
just do the right thing
---------------------------------------------------------------------------------------------------

                 Key: JRUBY-2939
                 URL: http://jira.codehaus.org/browse/JRUBY-2939
             Project: JRuby
          Issue Type: Bug
          Components: Miscellaneous
    Affects Versions: JRuby 1.1.3
            Reporter: Charles Oliver Nutter
             Fix For: JRuby 1.1.4


Right now, if you bind a method like this:

{noformat}
@JRubyMethod
public static IRubyObject foo(ThreadContext context, IRubyObject self, 
IRubyObject[]) { ...
{noformat}

If you don't specify rest = true the method will try to bind to one of the 
specific-arity JavaMethod versions. This is obviously incorrect, and the 
VerifyError that results is not helpful. We should modify the invocation method 
generator to either do the right thing and assume rest = true in this case, or 
display an appropriate error.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to