harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r451100 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/util/GregorianCalendar.java test/java/tests/api/java/util/GregorianCalendarTest.java
Date Fri, 29 Sep 2006 03:16:39 GMT
Author: pyang
Date: Thu Sep 28 20:16:38 2006
New Revision: 451100

URL: http://svn.apache.org/viewvc?view=rev&rev=451100
Log:
Apply patch for HARMONY-947 (GregorianCalendar.getLeastMaximim(int) returns values that differ
from RI)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java?view=diff&rev=451100&r1=451099&r2=451100
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
Thu Sep 28 20:16:38 2006
@@ -61,8 +61,8 @@
     private static int[] minimums = new int[] { 0, 1, 0, 1, 0, 1, 1, 1, -1, 0,
             0, 0, 0, 0, 0, -13 * 3600 * 1000, 0 };
 
-    private static int[] leastMaximums = new int[] { 1, 292269054, 11, 52, 4,
-            28, 365, 7, 4, 1, 11, 23, 59, 59, 999, 14 * 3600 * 1000, 3600000 };
+    private static int[] leastMaximums = new int[] { 1, 292269054, 11, 50, 3,
+            28, 355, 7, 3, 1, 11, 23, 59, 59, 999, 50400000, 1200000 };
 
     private boolean isCached;
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java?view=diff&rev=451100&r1=451099&r2=451100
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
Thu Sep 28 20:16:38 2006
@@ -380,8 +380,8 @@
 
 		BitSet result = new BitSet();
 		Vector values = new Vector();
-		int[] max = { 1, 292269054, 11, 52, 4, 28, 365, 7, 4, 1, 11, 23, 59,
-				59, 999, 50400000, 3600000 };
+        int[] max = { 1, 292269054, 11, 50, 3, 28, 355, 7, 3, 1, 11, 23, 59,
+                59, 999, 50400000, 1200000 };
 		for (int i = 0; i < max.length; i++) {
 			if (gc.getLeastMaximum(i) != max[i]) {
 				result.set(i);



Mime
View raw message