Method arguments get mangled and/or disappear when using default argument values
--------------------------------------------------------------------------------
Key: JRUBY-4285
URL: http://jira.codehaus.org/browse/JRUBY-4285
Project: JRuby
Issue Type: Bug
Components: Ruby 1.9
Affects Versions: JRuby 1.4
Environment: Encountered with jruby 1.4.0 (ruby 1.8.7 patchlevel 174)
(2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.5.0_20) [i386-java] running
on Mac OS X 1.5.8
Reporter: Mathias Bruce
Assignee: Thomas E Enebo
Priority: Critical
Attachments: test_default_argument.rb
Using method arguments with default values followed by arguments without
default values cause the arguments to arrive in jumbled order and some are just
missing (nil). As the code sample/test shows it doesn't happen with 4
arguments, but does with 5 arguments.
I tried with 6 arguments which performed the same as 5, so maybe any number of
arguments above 5 will trigger the bug.
JRuby was run with the --1.9 parameter, since method arguments with default
values succeeded by arguments without default values is a Ruby 1.9 feature.
--
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