New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enumerator#any? is wrong for sequence of empty arrays #5968
Comments
oh nice, so we got a regression - seems like the test coverage isn't perfect. was basically trying to increase compatibility (there's some more commits involved with Enumerator work in 9.2.9 than the one @ahorek bisected for us) and fix some long standing bugs. hopefully we can fix this (pathological) case without regressing other stuff we started passing in 9.2.9 |
... `[[]].to_enum.take(1)` regressed in 9.2.9 (jrubyGH-5968) but the required signature was incorrect along the way
Hi @kares. This issue doesn't seem to be resolved in JRuby 9.2.10.0 and 9.2.11.0. % cat jruby_bug.rb
p [[]].any?
p [[]].to_enum.any? JRuby 9.2.8.0% ruby -v
jruby 9.2.8.0 (2.5.3) 2019-08-12 a1ac7ff Java HotSpot(TM) 64-Bit Server VM 25.5-b02 on 1.8.0_05-b13 +jit [darwin-x86_64]
% ruby jruby_bug.rb
true
true JRuby 9.2.10.0% ruby -v
jruby 9.2.10.0 (2.5.7) 2020-02-18 fffffff Java HotSpot(TM) 64-Bit Server VM 25.5-b02 on 1.8.0_05-b13 +jit [darwin-x86_64]
% ruby jruby_bug.rb
true
false JRuby 9.2.11.0% ruby -v
jruby 9.2.11.0 (2.5.7) 2020-03-02 612d7a05a6 Java HotSpot(TM) 64-Bit Server VM 25.5-b02 on 1.8.0_05-b13 +jit [darwin-x86_64]
% ruby jruby_bug.rb
true
false |
Retargeted to 9.2.12. See #6285. |
This reverts commit 7743366. jruby/jruby#5968 has been solved by JRuby 9.2.12.0.
This reverts commit 7743366. jruby/jruby#5968 has been solved by JRuby 9.2.12.0.
Environment
Expected Behavior
(same for MRI)
Actual Behavior
Discovered through rubocop/rubocop#7489
The text was updated successfully, but these errors were encountered: