New invokers attempt to access argument list of non-overloaded methods with
incorrect arity
-------------------------------------------------------------------------------------------
Key: JRUBY-2946
URL: http://jira.codehaus.org/browse/JRUBY-2946
Project: JRuby
Issue Type: Bug
Components: Java Integration
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.1.4
I missed a bit of logic in the new JI refactoring. When calling a method that
only has one version defined, the logic in RubyToJavaInvoker doesn't do the
arity checking it should, resulting in it trying to access elements of the
argument list that do not exist (often resulting in an ArrayIndexOutOfBounds
exception). For example:
java.util.Collections.empty_list('foo')
Fixing with a spec momentarily.
--
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