[kaffe] CVS kaffe (doogie): Call complete() in the constructor after setting the time. Fixes test case

Kaffe CVS cvs-commits at kaffe.org
Mon Dec 20 00:24:13 PST 2004


PatchSet 5682 
Date: 2004/12/20 06:02:16
Author: doogie
Branch: HEAD
Tag: (none) 
Log:
Call complete() in the constructor after setting the time.  Fixes test case
failure in commons-net, and makes the code behave like sun.

Members: 
	ChangeLog:1.3228->1.3229 
	libraries/javalib/java/util/GregorianCalendar.java:1.28->1.29 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3228 kaffe/ChangeLog:1.3229
--- kaffe/ChangeLog:1.3228	Mon Dec 20 04:23:33 2004
+++ kaffe/ChangeLog	Mon Dec 20 06:02:16 2004
@@ -1,5 +1,12 @@
 2004-12-19  Adam Heath  <doogie at brainfood.com>
 
+	* libraries/javalib/java/util/GregorianCalendar.java:
+	  Call complete() in the constructor after setting the time.  Fixes
+	  test case failure in commons-net, and makes the code behave like
+	  sun.
+
+2004-12-19  Adam Heath  <doogie at brainfood.com>
+
 	* kaffe/kaffevm/jit/basecode.h, kaffe/kaffevm/jit/codeproto.h
 	  kaffe/kaffevm/jit/funcs.c, kaffe/kaffevm/jit3/funcs.c:
 	  Miscellaenous sparse fixes.
Index: kaffe/libraries/javalib/java/util/GregorianCalendar.java
diff -u kaffe/libraries/javalib/java/util/GregorianCalendar.java:1.28 kaffe/libraries/javalib/java/util/GregorianCalendar.java:1.29
--- kaffe/libraries/javalib/java/util/GregorianCalendar.java:1.28	Thu Nov 11 02:41:57 2004
+++ kaffe/libraries/javalib/java/util/GregorianCalendar.java	Mon Dec 20 06:02:18 2004
@@ -219,6 +219,7 @@
   {
     this(zone, locale, false);
     setTimeInMillis(System.currentTimeMillis());
+    complete();
   }
 
   /**
@@ -247,6 +248,7 @@
   {
     this(TimeZone.getDefault(), Locale.getDefault(), false);
     set(year, month, day);
+    complete();
   }
 
   /**
@@ -263,6 +265,7 @@
   {
     this(TimeZone.getDefault(), Locale.getDefault(), false);
     set(year, month, day, hour, minute);
+    complete();
   }
 
   /**
@@ -281,6 +284,7 @@
   {
     this(TimeZone.getDefault(), Locale.getDefault(), false);
     set(year, month, day, hour, minute, second);
+    complete();
   }
 
   /**



More information about the kaffe mailing list