Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Never use identity comparison for Ruby objects.
Numeric objects in JRuby do not have guarantees of idempotence. In this code, many places used object equality to compare two Fixnum objects, a situation which is never guaranteed to work, and which is much more likely to fail when JRuby's cache of low-valued Fixnum objects is turned off as in jruby/jruby#5401. This patch removes all such object identity comparisons and replaces them with .equals calls.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters