This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: patch for libjava/java/util/Calendar.java


Archit Shah wrote:
Fedora bug 172305 [1] is caused by a bug in Java calendaring. The attached patch fixed that bug for classpath in the 0.16 release. From the classpath CVS log:

2005-06-01  Sven de Marothy  <sven@physto.se>
 * java/util/Calendar: (setTimeInMillis): Recompute time fields.

-- Archit

Links

1. http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=172305


------------------------------------------------------------------------


--- libjava/java/util/Calendar.java	2005-11-09 04:48:40.000000000 -0500
+++ libjava/java/util/Calendar.new.java	2005-11-10 15:02:57.852313733 -0500
@@ -629,6 +629,7 @@
     clear();
     this.time = time;
     isTimeSet = true;
+    computeFields();
   }

FWIW in my spare time (yeah right!) I am working on a larger Calendar patch that encompasses this change.


In the mean time you could log this in gcc's bugzilla.

David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]