You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2008/02/12 11:02:14 UTC

[jira] Reopened: (HARMONY-5466) [classlib][util] display language is reset to the value of constructor after Locale is set as default.

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

Tony Wu reopened HARMONY-5466:
------------------------------


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