Daniel Berger created JRUBY-6304: ------------------------------------ Summary: Array#flatten!(0) returns different value than MRI Key: JRUBY-6304 URL: https://jira.codehaus.org/browse/JRUBY-6304 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.6.5 Environment: jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.6.0_29) [Windows Vista-x86-java] Reporter: Daniel Berger Assignee: Thomas E Enebo Priority: Minor
Minor discrepancy between MRI and JRuby with Array#flatten(0): {noformat}[1,[2,[3,4]]].flatten!(0) # => MRI returns original array, JRuby returns nil{noformat} This could be a bug in MRI, which traditionally returns nil on bang methods if the receiver is unmodified. I leave it to you to decide. :) Courtesy of berger_spec. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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