Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
Description
The IntHashSet impl switches representation between one which can store adjusted ints (adjusted by constant offset) in 2 bytes and one which needs 4 bytes.
The switch is incorrectly happening during the adjustKey phase - no switch is needed except for the "add" case.
The switch is counted on not to occur for the contains case, and when it does, a NPE is thrown.
Check other adjusting impls for this same kind of thing.