Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emulate set.rb when hashing uninitialized Set
set.rb is implemented in pure Ruby, so its @hash instance var will start out as nil. If you attempt to #hash an uninitialized Set, the resulting hashcode is that of nil, rather than raising an exception as seen in jruby#8393. This fix emulates the nil hash. No other uses of the uninitialized Set are fixed here, so it's still largely unusable until it has been initialized. See also jruby#8352. Fixes jruby#8393.
- Loading branch information