Bug 44625

GemStone/S 64 Bit

3.2.2, 3.2.1, 3.2, 3.1.0.6, 3.1.0.5, 3.1.0.4, 3.1.0.3, 3.1.0.2, 3.1.0.1, 3.0.1, 3.0, 2.4.8, 2.4.7, 2.4.6, 2.4.5.1, 2.4.5, 2.4.4.8, 2.4.4.7, 2.4.x, 2.3.1.6, 2.3.x, 2.2.5.4, 2.x

All Platforms

3.2.3

KeyvalueDictionary removeKey:* on nil doesn't always return an error

Nil is not a valid value for a key in a KeyValueDictionary, and attempting to add it will trigger a #rtErrNilKey (2090) error.  You *should* get this error when attempting to remove a nil key.  But frequently the key-not-present behavior will happen instead:

For #removeKey:ifAbsent:  The ifAbsent block will be executed. For #removeKey:otherwise:  The otherwise value will be returned.


                

Last updated: 10/13/14