You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2007/07/13 09:54:05 UTC
[jira] Assigned: (HARMONY-4446) Introspector.decapitalize fails in
Turkish locale
[ 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.