harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "spark shen (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1027) [classlib][luni] java.util.Locale.toString() returns wrong value
Date Tue, 01 Aug 2006 09:43:14 GMT
[classlib][luni] java.util.Locale.toString() returns wrong value
----------------------------------------------------------------

                 Key: HARMONY-1027
                 URL: http://issues.apache.org/jira/browse/HARMONY-1027
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: spark shen


If the languageCode and countryCode of the locale both equal "" and the
variantCode does not equal "", method java.util.Locale.toString() should return
"". But Harmony returns wrong value.

The following test case gives a hint.
    public void test_Locale_toString() {
        Locale var = new Locale("", "", "var");
        assertEquals("", var.toString());
    }

This test case will pass on RI, but will fail on Harmony. 

I will attach a patch to fix this problem soon.

Best regard,
Spark Shen

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message