summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorwarrenl <warrenl@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-27 11:53:53 +0000
committerwarrenl <warrenl@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-27 11:53:53 +0000
commit093bbb13a5a14260f23119393d5bf48e790f405a (patch)
treeddeb57b8a5c39349fb83d0daef6f3a7f6b63623c /libjava
parentb5561639bb74ec381e6ab15c3821a61bbb037ca8 (diff)
downloadgcc-093bbb13a5a14260f23119393d5bf48e790f405a.tar.gz
* java/util/natGregorianCalendar.cc (computeFields): Set the isSet__
array elements to true. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37081 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/util/natGregorianCalendar.cc2
2 files changed, 7 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index c8c398689c1..fb17da3edee 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,10 @@
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.
* Makefile.in: Rebuilt.
* gnu/java/locale/Calendar.java: New file.
diff --git a/libjava/java/util/natGregorianCalendar.cc b/libjava/java/util/natGregorianCalendar.cc
index f412410518c..b1d66d2a4b3 100644
--- a/libjava/java/util/natGregorianCalendar.cc
+++ b/libjava/java/util/natGregorianCalendar.cc
@@ -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;
}