harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5466) [classlib][util] display language is reset to the value of constructor after Locale is set as default.
Date Sat, 09 Feb 2008 12:52:08 GMT

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

Tony Wu updated HARMONY-5466:
-----------------------------

    Component/s:     (was: Classlib)
                 Non-bug differences from RI

The method getDisplayLanguage() prints the localized string in the default locale, so the
output after resetting the default locale may be different. And the difference here is CLDR
data.

Change to non-bug difference.

> [classlib][util] display language is reset to the value of constructor after Locale is
set as default.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-5466
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5466
>             Project: Harmony
>          Issue Type: Bug
>          Components: Non-bug differences from RI
>         Environment: All
>            Reporter: Pavel Pervov
>            Assignee: Tony Wu
>             Fix For: 5.0M5
>
>
> The following test succeeds on RI but fails on Harmony.
> ----------------------------
> import java.util.Locale;
> class LocaleDisplayLang {
>     public static void main(String[] args) {
>         Locale p = new Locale("la", "NZ");
>         if(p.getDisplayLanguage().equals("Latin")) {
>             System.out.println("PASSED");
>         } else {
>             System.out.println("FAILED: Latin != " + p.getDisplayLanguage());
>         }
>         Locale.setDefault(p);
>         if(p.getDisplayLanguage().equals("Latin")) {
>             System.out.println("PASSED");
>         } else {
>             System.out.println("FAILED: Latin != " + p.getDisplayLanguage());
>         }
>     }
> }
> ----------------------------
> RI prints
> PASSED
> PASSED
> but Harmony prints
> PASSED
> FAILED

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