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:01:49 UTC

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

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


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu closed HARMONY-5466.
----------------------------

    Resolution: Fixed

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


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Pervov updated HARMONY-5466:
----------------------------------

    Fix Version/s: 5.0M5

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


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

Posted by "Pavel Pervov (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu reassigned HARMONY-5466:
--------------------------------

    Assignee: Tony Wu

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


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

Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tony Wu closed HARMONY-5466.
----------------------------

    Resolution: Won't Fix

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