CDV ❯ ArrayManager does not take into account negative hash codes in calculations
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
DSO:L1
-
-
teck
-
Reporter: amiller
-
November 13, 2008
-
0
-
Watchers: 0
-
December 16, 2008
-
November 17, 2008
Description
There are two places in ArrayManager (register() and getObject()) where the array object hash code maps into an array of maps, but this could does not take into consideration negative hash code values for arrays.
Also, I think I’d argue that the object->hash bucket logic should be moved into a common helper method.
Found with FindBugs…