Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6, JRuby 1.7.0.pre2
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: Core Classes/Modules, Ruby 1.9.2
-
Labels:None
-
Number of attachments :
Description
I first discovered this when investigating an odd failing test in my gem on Travis-CI. I was using #each_slice and #drop to implement basic pagination, and my tests kept passing on Rubinius and MRI, but failing on JRuby.
Hiro Asari helped reduce it to a simple test case.
Hiro's reduced test cases is here: https://gist.github.com/3730693
This has been fixed on the master:
https://github.com/jruby/jruby/commit/06f044124bef7856340b2bb7bdad6bac7d68f771 and on the 1.6 branch:
https://github.com/jruby/jruby/commit/d991aba74432a1e07636bcf31d902b382d9f6dbe