Proc arity failures for lambdas with a single argument receiving 0 or >1
argument
---------------------------------------------------------------------------------
Key: JRUBY-1823
URL: http://jira.codehaus.org/browse/JRUBY-1823
Project: JRuby
Issue Type: Bug
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.1b2
Fix coming along with another refactoring of how argument processing is set up
for all blocks (with some centralization of a number of pieces of code).
{noformat}
1)
Proc#call sets self's single parameter to an Array of all given values FAILED
wrong number of arguments(0 for 1):
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:25:in
`call'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:24:in
`each'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:24:in
`each'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:24:in
`call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:2:in
`describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:2:in
`call'
./mspec/runner/shared.rb:7:in `it_behaves_like'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/call_spec.rb:5:in
`it_behaves_like'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/call_spec.rb:4:in
`call'
./mspec/runner/runner.rb:127:in `describe'
./mspec/runner/object.rb:11:in `describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/call_spec.rb:4:in
`describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/call_spec.rb:4:in
`load'
tmp/last_mspec.rb:15:in `load'
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10:in `each'
2)
Proc#[] sets self's single parameter to an Array of all given values FAILED
wrong number of arguments(0 for 1):
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:25:in
`[]'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:24:in
`each'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:24:in
`each'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:24:in
`call'
./mspec/runner/runner.rb:136:in `describe'
./mspec/runner/runner.rb:135:in `each'
./mspec/runner/runner.rb:130:in `describe'
./mspec/runner/runner.rb:135:in `describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:2:in
`describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/shared/call.rb:2:in
`call'
./mspec/runner/shared.rb:7:in `it_behaves_like'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/element_reference_spec.rb:5:in
`it_behaves_like'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/element_reference_spec.rb:4:in
`call'
./mspec/runner/runner.rb:127:in `describe'
./mspec/runner/object.rb:11:in `describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/element_reference_spec.rb:4:in
`describe'
/Users/headius/NetBeansProjects/rubinius/./spec/core/proc/element_reference_spec.rb:4:in
`load'
tmp/last_mspec.rb:15:in `load'
tmp/last_mspec.rb:10:in `each'
tmp/last_mspec.rb:10:in `each'
{noformat}
--
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