Bug 39476

GemStone/S 64 Bit

2.2.5.4, 2.2.5.3, 2.2.5.2, 2.2.5.1, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2., 2.2, 2.1.4, 2.1.x, 1.2.5, 1.2.4, 1.2.x, 1.1.x, earlier versions

All

2.3

Hashed lookup fails on String/DoubleByteStrings containing ÿ

There is an error in the hashing algorithm for DoubleByteStrings containing
the Character with ASCII value 255 - the character ÿ. As a result, a String
containing ÿ and an otherwise equal DoubleByteString do not hash to the
same value. This means that in hashed collections (such as Bag and KeyValueDictionary),
elements that are DoubleByteStrings containing ÿ cannot be looked up in
the collection using the equivalent String, and vice versa.

Indexes do not use hashing and are not affected.


                

Last updated: 10/21/08