harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r430332 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src: main/java/org/apache/harmony/luni/internal/locale/ISO3Languages.java test/java/tests/api/java/util/LocaleTest.java
Date Thu, 10 Aug 2006 09:12:15 GMT
Author: pyang
Date: Thu Aug 10 02:12:14 2006
New Revision: 430332

URL: http://svn.apache.org/viewvc?rev=430332&view=rev
Log:
Patch applied for HARMONY-1129([classlib][luni] java.util.Locale.getISO3Language() method
does not return correct)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/ISO3Languages.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/LocaleTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/ISO3Languages.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/ISO3Languages.java?rev=430332&r1=430331&r2=430332&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/ISO3Languages.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/internal/locale/ISO3Languages.java
Thu Aug 10 02:12:14 2006
@@ -25,6 +25,7 @@
 		{"ab", "abk"},
         {"ae", "ave"},
 		{"af", "afr"},
+        {"ak", "aka"}, //$NON-NLS-1$ //$NON-NLS-2$
 		{"am", "amh"},
 		{"ar", "ara"},
 		{"as", "asm"},

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/LocaleTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/LocaleTest.java?rev=430332&r1=430331&r2=430332&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/LocaleTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/LocaleTest.java
Thu Aug 10 02:12:14 2006
@@ -227,6 +227,10 @@
         
         Locale l = new Locale("ae");
         assertEquals("ave", l.getISO3Language());
+        
+        // Regression for Harmony-1129
+        l = new Locale("ak", ""); //$NON-NLS-1$ //$NON-NLS-2$
+        assertEquals("aka", l.getISO3Language()); //$NON-NLS-1$
 	}
 
 	/**



Mime
View raw message