[1.9] Wrong block args handing ------------------------------ Key: JRUBY-4638 URL: http://jira.codehaus.org/browse/JRUBY-4638 Project: JRuby Issue Type: Bug Components: Ruby 1.9 Affects Versions: JRuby 1.4 Reporter: Vladimir Sizikov Assignee: Thomas E Enebo
Consider the following: {noformat} ruby -e "order = lambda {|x| p x; x[0] <=> x[1]}; p [1,2,3].max(&order)" {noformat} MRI produces: {noformat} [2, 1] [3, 2] 3 {noformat} JRuby produces totally wrong results: {noformat} jruby --1.9 -e "order = lambda {|x| p x; x[0] <=> x[1]}; p [1,2,3].max(&order)" 2 3 1 {noformat} The result of max is *1*, which is totally wrong, and the block parameters are wrong. -- 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