harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r502232 - in /harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/util/GregorianCalendar.java test/java/tests/api/java/util/GregorianCalendarTest.java
Date Thu, 01 Feb 2007 14:42:20 GMT
Author: ayza
Date: Thu Feb  1 06:42:20 2007
New Revision: 502232

URL: http://svn.apache.org/viewvc?view=rev&rev=502232
Log:
Applying patch from HARMONY-3093 ([classlib][luni]GregorianCalendar.getMaximum(Calendar.DST_OFFSET)
returns incorrect value)

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java?view=diff&rev=502232&r1=502231&r2=502232
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/GregorianCalendar.java
Thu Feb  1 06:42:20 2007
@@ -60,7 +60,7 @@
             212, 243, 273, 304, 334 };
 
     private static int[] maximums = new int[] { 1, 292278994, 11, 53, 6, 31,
-            366, 7, 6, 1, 11, 23, 59, 59, 999, 14 * 3600 * 1000, 3600000 };
+            366, 7, 6, 1, 11, 23, 59, 59, 999, 14 * 3600 * 1000, 7200000 };
 
     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 };

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java?view=diff&rev=502232&r1=502231&r2=502232
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/GregorianCalendarTest.java
Thu Feb  1 06:42:20 2007
@@ -436,7 +436,7 @@
 		BitSet result = new BitSet();
 		Vector values = new Vector();
 		int[] max = { 1, 292278994, 11, 53, 6, 31, 366, 7, 6, 1, 11, 23, 59,
-				59, 999, 50400000, 3600000 };
+				59, 999, 50400000, 7200000 };
 		for (int i = 0; i < max.length; i++) {
 			if (gc.getMaximum(i) != max[i]) {
 				result.set(i);



Mime
View raw message