Opened 9 years ago

Closed 9 years ago

#65 closed defect (fixed)

String #hash return different values for instances of String and Unicode16/32String

Reported by: vranyj1 Owned by:
Priority: major Milestone:
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): yes

Description

...when string contains character with codepoint 0. Test:

self assert: 
    (String with: (Character codePoint:0)) hash 
        == (Unicode16String with: (Character codePoint:0)) hash.

self assert: 
    (String with: (Character codePoint:0)) hash 
        == (Unicode32String with: (Character codePoint:0)) hash.

This especially affects STX:LIBJAVA as char[] created in Java are instances of Unicode16String.

Change History (2)

comment:2 by vranyj1, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.