Faculty of Information Technology
Software Engineering Group

Opened 2 years ago

Closed 2 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:1 Changed 2 years ago by vranyj1

comment:2 Changed 2 years ago by vranyj1

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