Bug 12981

GemStone/S

6.7.2.1, 6.7.2, 6.7.1, 6.7, 6.6.5, 6.6.4, 6.6.3.3, 6.6.3.2, 6.6.3, 6.6.2, 6.6.1, 6.6, 6.5.8, 6.5.7.5, 6.5.7, 6.5.6, 6.5.5, 6.5.4, 6.5.2, 6.5.1, 6.5, 6.3.1, 6.3, 6.2.x, 6.2, 6.1.6, 6.1.5, 6.1.x, 6.0.x, 5.1.5.1, 5.1.5, earlier versions

All

Hash values change on modification of collection elements

The hash value of a collection depends on the elements contained in that  
collection. If an element of the collection is changed. or a new element  
is added, the hash value changes. As a result, if one of these  
collections is contained in another hash-based object, such as  
Dictionaries, (Equality) Bags, or (Equality) Sets, and an element in  
that object is changed or added, you may not be able to find the  
collection after the modification. For the same reason, if any  
Dictionary is added to itself as a key, you may not be able to find it  
afterwards, because its hash value will change as soon as it is added  
to itself.

Workaround

No workaround is available.


                

Last updated: