harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohanraj Loganathan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6583) [classlib][luni]String.lastIndexOf behaves wrongly if the string contains any Supplementary Characters
Date Thu, 15 Jul 2010 05:14:50 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mohanraj Loganathan updated HARMONY-6583:
-----------------------------------------

    Attachment: StringlastIndexOf_001.diff

attaching patch for above issue

>  [classlib][luni]String.lastIndexOf behaves wrongly if the string contains any Supplementary
Characters
> -------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6583
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6583
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: windows and linux
>            Reporter: Mohanraj Loganathan
>         Attachments: StringlastIndexOf_001.diff
>
>
> If the String contains Supplementary characters in it then String.lastIndexof function
returns wrong values in Harmony.
> If the String chars codepoint value above 0xFFFF , then String.lastIndexOf return wrong
results.
> Consider the example below:
> if("a\ud800\udc00".lastIndexOf(0x10000) != 1)
>     System.out.println("we should not be here");
> Above test passes in RI and fails with harmony.

-- 
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