summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2007-04-13 10:48:41 +0000
committerGary Benson <gbenson@redhat.com>2007-04-13 10:48:41 +0000
commit304e22de20622b7ac3bedbc1cc90e4bb653aad5d (patch)
tree9e324e8f800cb7d119b226d24cd7676668172bce
parentc9b3a81eb879f1bcc2ca915e7108009e8d10b3f4 (diff)
downloadclasspath-304e22de20622b7ac3bedbc1cc90e4bb653aad5d.tar.gz
2007-04-13 Gary Benson <gbenson@redhat.com>
* java/util/Calendar.java (setTimeZone): Don't recalculate anything, just invalidate the fields.
-rw-r--r--ChangeLog6
-rw-r--r--java/util/Calendar.java3
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bd977e66d..5e5236feb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2007-04-13 Gary Benson <gbenson@redhat.com>
+ * java/util/Calendar.java
+ (setTimeZone): Don't recalculate anything, just invalidate
+ the fields.
+
+2007-04-13 Gary Benson <gbenson@redhat.com>
+
* java/util/GregorianCalendar.java
(setDefaultFields): Change DAY_OF_WEEK_IN_MONTH default,
and add some comments.
diff --git a/java/util/Calendar.java b/java/util/Calendar.java
index 5a2b91519..3e4fd8a34 100644
--- a/java/util/Calendar.java
+++ b/java/util/Calendar.java
@@ -1088,8 +1088,7 @@ public abstract class Calendar
public void setTimeZone(TimeZone zone)
{
this.zone = zone;
- computeTime();
- computeFields();
+ areFieldsSet = false;
}
/**