Actions
Bug #4437
closedIntHashSet.copy()
Start date:
2020-01-22
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:
Description
There appears to be a bug in the method IntHashSet.copy()
. The new IntHashSet
that emerges from the copy appears to have all fields identical to the original except for _mask
, and the difference in the _mask
value means that existing entries are not found in a contains()
call.
This is code that has been stable for years, and it's not obviously unused (though that might turn out to be the case). Perhaps it only happens under rare conditions in terms of the actual map content. The bug was revealed in a new piece of code in 10.0 that makes use of IntHashMap
. As it happens, the new code doesn't actually need to invoke copy()
at all.
Please register to edit this issue
Actions