diff options
| author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-26 11:21:45 +0000 |
|---|---|---|
| committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-26 11:21:45 +0000 |
| commit | 5f329d591ca02004500101b7ffe6c2ed96925617 (patch) | |
| tree | f1888f988daa008faa5d48c983f690f3067987c7 /libjava/ChangeLog | |
| parent | 2bbbdf1a822ddcdbd2352dbd9f2a3c15bbce32c3 (diff) | |
| download | ppe42-gcc-5f329d591ca02004500101b7ffe6c2ed96925617.tar.gz ppe42-gcc-5f329d591ca02004500101b7ffe6c2ed96925617.zip | |
* java/util/Calendar.java (set): Never recompute fields here. They
will already be set if someone set time explicitly, and it can cause
problems to do so. Don't invalidate AM_PM setting if HOUR is set.
* java/util/GregorianCalendar.java (computeTime): Don't ignore an
HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
sane.
* java/text/SimpleDateFormat.java (defaultCentury): New field.
(readObject): Call set2DigitYearStart if appropriate so that
defaultCentury is calculated.
(SimpleDateFormat): Don't bother clearing calendar here. Call
computeCenturyStart().
(set2DigitYearStart): Calculate and set defaultCentury.
(format): Don't clone the calendar. Use "calendar" not "theCalendar"
everywhere.
(parse): Likewise. If the pattern is "y" or "yy" and it found exactly
2 numeric digits, use the 80-20 heuristic to parse the value into a
default century based on defaultCenturyStart.
(computeCenturyStart): Rewritten. Call set2DigitYearStart().
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44395 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/ChangeLog')
| -rw-r--r-- | libjava/ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index bc5f52207e7..15a2c566acb 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,24 @@ +2001-07-26 Bryce McKinlay <bryce@waitaki.otago.ac.nz> + + * java/util/Calendar.java (set): Never recompute fields here. They + will already be set if someone set time explicitly, and it can cause + problems to do so. Don't invalidate AM_PM setting if HOUR is set. + * java/util/GregorianCalendar.java (computeTime): Don't ignore an + HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is + sane. + * java/text/SimpleDateFormat.java (defaultCentury): New field. + (readObject): Call set2DigitYearStart if appropriate so that + defaultCentury is calculated. + (SimpleDateFormat): Don't bother clearing calendar here. Call + computeCenturyStart(). + (set2DigitYearStart): Calculate and set defaultCentury. + (format): Don't clone the calendar. Use "calendar" not "theCalendar" + everywhere. + (parse): Likewise. If the pattern is "y" or "yy" and it found exactly + 2 numeric digits, use the 80-20 heuristic to parse the value into a + default century based on defaultCenturyStart. + (computeCenturyStart): Rewritten. Call set2DigitYearStart(). + 2001-07-25 Tom Tromey <tromey@redhat.com> * Makefile.in: Rebuilt. |

