harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6649) String.toLowerCase/toUpperCase incorrect for supplementary characters
Date Tue, 14 Sep 2010 20:12:47 GMT
String.toLowerCase/toUpperCase incorrect for supplementary characters
---------------------------------------------------------------------

                 Key: HARMONY-6649
                 URL: https://issues.apache.org/jira/browse/HARMONY-6649
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M15
            Reporter: Robert Muir


Simple testcase:

{code}
    assertEquals("\uD801\uDC44", "\uD801\uDC1C".toLowerCase());
{code}

Looking at modules/luni/src/main/java/java/lang/String.java, the problem is these methods
iterate code units (char) not codepoints (int),
and use Character.toLowerCase(char) and Character.toUpperCase(char), instead of Character.toLowerCase(int),
and Character.toUpperCase(int)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message