[ https://issues.apache.org/jira/browse/HARMONY-6649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914088#action_12914088
]
Tim Ellison commented on HARMONY-6649:
--------------------------------------
I'll back out the changes to String until we find all the places that need to be fixed in
the bootsequence.
> 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
> Assignee: Tim Ellison
> Fix For: 5.0M15
>
> Attachments: HARMONY-6649_filepermission.patch, HARMONY-6649_tests.patch, harmony6649.patch
>
>
> 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.
|