patch for libjava/java/util/Calendar.java

David Daney ddaney@avtrex.com
Thu Nov 10 21:00:00 GMT 2005


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



More information about the Java-patches mailing list