Hi,
this tiny patch ensure that the calendar internal state is completed
before the clear(int) main code is performed so that it doesn't swallow
pending changes.
Seen its size and impact, it's going to be committed in a minut ..
Regards
+Olivier
2006-05-06 Olivier Jolly <[EMAIL PROTECTED]>
Fixed PR27362
* java/util/Calendar.java: (clear(int)): Forced internal state
completion before performing a field clearing.
Index: Calendar.java
===================================================================
RCS file: /sources/classpath/classpath/java/util/Calendar.java,v
retrieving revision 1.47
diff -u -r1.47 Calendar.java
--- Calendar.java 1 Oct 2005 19:45:23 -0000 1.47
+++ Calendar.java 6 May 2006 17:18:42 -0000
@@ -877,6 +877,7 @@
1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, 0, 0, 0,
0, 0, zone.getRawOffset(), 0
};
+ complete();
isTimeSet = false;
areFieldsSet = false;
isSet[field] = false;