Bug 42917

GemStone/S 64 Bit

3.1.0.2, 3.1.0.1, 3.1

3.1.0.3

String withAll: inconsistent behavior and incorrect result for MultiByteString arg

In earlier versions, String class >> withAll: returned a result of the String class of the argument, String, DoubleByteString, or QuadByteString. Starting in v3.1, this method returned a class of string with the minimum bytes required to represent the argument; however, the comment was not updated so the new behavior was not consistent with the method comment.

The results returned when passing a QuadByteString to String class >> withAll: were corrupted; the result was a String of twice as long, of which the remaining bits were garbage.


Last updated: 4/7/15