harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Cornwall (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4446) Introspector.decapitalize fails in Turkish locale
Date Thu, 12 Jul 2007 16:57:05 GMT
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
            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