Array#fill should return self instead of raising an error when length is
negative
---------------------------------------------------------------------------------
Key: JRUBY-2751
URL: http://jira.codehaus.org/browse/JRUBY-2751
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.2
Environment: Latest JRuby
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
Fix For: JRuby 1.1.3
See:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/17481
jruby -ve "p [1, 2, 3].fill('a', 1, -5)" #==>
jruby 1.1.3-dev (ruby 1.8.6 patchlevel 114) (2008-07-04 rev 7101+1) [i386-java]
-e:1:in `fill': argument too big (ArgumentError)
While:
/opt/ruby186-dev/bin/ruby -ve "p [1, 2, 3].fill('a', 1, -2)"
ruby 1.8.6 (2008-07-03 patchlevel 265) [i686-linux]
[1, 2, 3]
Will fix.
--
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