natGregorianCalendar.cc (computeFields): Set the isSet__ array elements to true.
authorWarren Levy <warrenl@cygnus.com>
Fri, 27 Oct 2000 11:53:53 +0000 (11:53 +0000)
committerWarren Levy <warrenl@gcc.gnu.org>
Fri, 27 Oct 2000 11:53:53 +0000 (11:53 +0000)
* java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
array elements to true.

From-SVN: r37081

libjava/ChangeLog
libjava/java/util/natGregorianCalendar.cc

index c8c398689c1c024b9e9a8edeafe1d3f18f4bb9ca..fb17da3edee96fdf905cb1589a731dc91ac0e354 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-27  Warren Levy  <warrenl@cygnus.com>
+
+       * java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
+       array elements to true.
+
 2000-10-27  Warren Levy  <warrenl@cygnus.com>
 
        * Makefile.am: Added locale files from Classpath.
index f412410518c8576da46a0b28816d0c14d92379b2..b1d66d2a4b35e1694f56307f2249b8786259aed6 100644 (file)
@@ -111,4 +111,6 @@ java::util::GregorianCalendar::computeFields ()
   elements(fields)[DST_OFFSET] = tim.tm_isdst <= 0 ? 0 : 60*60*1000;
   elements(fields)[ZONE_OFFSET] = getTimeZone()->getRawOffset();
   areFieldsSet = true;
+  for (int i = 0; i < FIELD_COUNT; i++)
+    elements(isSet__)[i] = true;
 }