You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Pervov (JIRA)" <ji...@apache.org> on 2008/02/06 14:39:09 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=12566129#action_12566129 ]
Pavel Pervov commented on HARMONY-5466:
---------------------------------------
More correct output from Harmony
PASSED
FAILED: Latin != la
> [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: Classlib
> Environment: All
> Reporter: Pavel Pervov
>
> 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.