harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r430763 - 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, 11 Aug 2006 11:41:07 GMT
Author: pyang
Date: Fri Aug 11 04:41:07 2006
New Revision: 430763

URL: http://svn.apache.org/viewvc?rev=430763&view=rev
Log:
Patch applied for HARMONY-1151([classlib][luni] java.util.GregorianCalendar.getLeastMaximum()
method does not return correct value)

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?rev=430763&r1=430762&r2=430763&view=diff
==============================================================================
--- 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
Fri Aug 11 04:41:07 2006
@@ -62,7 +62,7 @@
 			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, 43200000, 3600000 };
+			28, 365, 7, 4, 1, 11, 23, 59, 59, 999, 14 * 3600 * 1000, 3600000 };
 
 	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?rev=430763&r1=430762&r2=430763&view=diff
==============================================================================
--- 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
Fri Aug 11 04:41:07 2006
@@ -381,7 +381,7 @@
 		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, 43200000, 3600000 };
+				59, 999, 50400000, 3600000 };
 		for (int i = 0; i < max.length; i++) {
 			if (gc.getLeastMaximum(i) != max[i]) {
 				result.set(i);



Mime
View raw message