harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-4446) Introspector.decapitalize fails in Turkish locale
Date Fri, 13 Jul 2007 07:54:05 GMT

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

Leo Li reassigned HARMONY-4446:
-------------------------------

    Assignee: Leo Li

> Introspector.decapitalize fails in Turkish locale
> -------------------------------------------------
>
>                 Key: HARMONY-4446
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4446
>             Project: Harmony
>          Issue Type: Bug
>         Environment: Harmony M2 on Windows x86
>            Reporter: Andrew Cornwall
>            Assignee: Leo Li
>            Priority: Minor
>
> If you run the following test case:
> import java.beans.Introspector;
> import java.util.Locale;
> public class Bugzilla126311 {
>     public static void main(String args[]) {
> 	Locale.setDefault(new Locale("TR"));
> 	String lowercase = Introspector.decapitalize("Id");
> 	System.out.println(lowercase + "= id: " + (lowercase.equals("id")));
>     }
> }
> on the Sun JDK, you will see the following output:
> id= id: true
> On Harmony M2, you will see:
> ?d= id: false
> This appears to be due to Harmony not taking the Turkish/Armenian dotless i into account.
One workaround would be to compare the first character to I and if it is, explicitly replacing
it with i in the decaptialized form in Introspector.decapitalize(String).

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