-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
5.0u8
-
sparc
-
solaris_9
JAVA 5 update 8(and update 6& 10) failed to parse DST days when -Duser.timezone=America/Montreal is used . These DST days are
in the 1930's:
4/28/1935, 4/26/1936, 4/25/1937
If -Duser.timezone=America/Montreal is not used the DST days are parsed correctly. The day
immediately before and after the DST day are parsed correctly.
JDK 1.3.1_18 and 1.4.2_12 do not have the problem.
The following timezone do not have the problem:
-Duser.timezone=Africa/Abidjan
-Duser.timezone=AMERICA/ALASKA
-Duser.timezone=AMERICA/LOS_ANGELES
============================================
locale=en
============================================
file.encoding [ISO646-US]
file.encoding.pkg [sun.io]
sun.io.unicode.encoding [UnicodeBig]
sun.jnu.encoding [ISO646-US]
user.language [en]
user.timezone [America/Montreal]
============================================
dateStrings[0] [19350427T00:00:00000]
date [Sat Apr 27 00:00:00 EST 1935]
+++++++++++++++++++++
dateStrings[1] [19350428T00:00:00000]
===== Exception parsing date [19350428T00:00:00000]
java.text.ParseException: Unparseable date: "19350428T00:00:00000"
at java.text.DateFormat.parse(DateFormat.java:335)
at TestSimpleDateFormat.dumpDates(TestSimpleDateFormat.java:91)
at TestSimpleDateFormat.main(TestSimpleDateFormat.java:38)
+++++++++++++++++++++
dateStrings[2] [19350429T00:00:00000]
date [Mon Apr 29 00:00:00 EDT 1935]
+++++++++++++++++++++
dateStrings[3] [19360425T00:00:00000]
date [Sat Apr 25 00:00:00 EST 1936]
+++++++++++++++++++++
dateStrings[4] [19360426T00:00:00000]
===== Exception parsing date [19360426T00:00:00000]
java.text.ParseException: Unparseable date: "19360426T00:00:00000"
at java.text.DateFormat.parse(DateFormat.java:335)
at TestSimpleDateFormat.dumpDates(TestSimpleDateFormat.java:91)
at TestSimpleDateFormat.main(TestSimpleDateFormat.java:38)
+++++++++++++++++++++
dateStrings[5] [19360427T00:00:00000]
date [Mon Apr 27 00:00:00 EDT 1936]
+++++++++++++++++++++
dateStrings[6] [19370424T00:00:00000]
date [Sat Apr 24 00:00:00 EST 1937]
+++++++++++++++++++++
dateStrings[7] [19370425T00:00:00000]
===== Exception parsing date [19370425T00:00:00000]
java.text.ParseException: Unparseable date: "19370425T00:00:00000"
at java.text.DateFormat.parse(DateFormat.java:335)
at TestSimpleDateFormat.dumpDates(TestSimpleDateFormat.java:91)
at TestSimpleDateFormat.main(TestSimpleDateFormat.java:38)
+++++++++++++++++++++
dateStrings[8] [19370426T00:00:00000]
date [Mon Apr 26 00:00:00 EDT 1937]
+++++++++++++++++++++
dateStrings[9] [19610429T00:00:00000]
date [Sat Apr 29 00:00:00 EST 1961]
+++++++++++++++++++++
dateStrings[10] [19610430T00:00:00000]
date [Sun Apr 30 00:00:00 EST 1961]
+++++++++++++++++++++
dateStrings[11] [19610501T00:00:00000]
date [Mon May 01 00:00:00 EDT 1961]
+++++++++++++++++++++
dateStrings[12] [20040401T00:00:00000]
date [Thu Apr 01 00:00:00 EST 2004]
+++++++++++++++++++++
dateStrings[13] [20060402T00:00:00000]
date [Sun Apr 02 00:00:00 EST 2006]
+++++++++++++++++++++
dateStrings[14] [20060403T00:00:00000]
date [Mon Apr 03 00:00:00 EDT 2006]
+++++++++++++++++++++
============================================
in the 1930's:
4/28/1935, 4/26/1936, 4/25/1937
If -Duser.timezone=America/Montreal is not used the DST days are parsed correctly. The day
immediately before and after the DST day are parsed correctly.
JDK 1.3.1_18 and 1.4.2_12 do not have the problem.
The following timezone do not have the problem:
-Duser.timezone=Africa/Abidjan
-Duser.timezone=AMERICA/ALASKA
-Duser.timezone=AMERICA/LOS_ANGELES
============================================
locale=en
============================================
file.encoding [ISO646-US]
file.encoding.pkg [sun.io]
sun.io.unicode.encoding [UnicodeBig]
sun.jnu.encoding [ISO646-US]
user.language [en]
user.timezone [America/Montreal]
============================================
dateStrings[0] [19350427T00:00:00000]
date [Sat Apr 27 00:00:00 EST 1935]
+++++++++++++++++++++
dateStrings[1] [19350428T00:00:00000]
===== Exception parsing date [19350428T00:00:00000]
java.text.ParseException: Unparseable date: "19350428T00:00:00000"
at java.text.DateFormat.parse(DateFormat.java:335)
at TestSimpleDateFormat.dumpDates(TestSimpleDateFormat.java:91)
at TestSimpleDateFormat.main(TestSimpleDateFormat.java:38)
+++++++++++++++++++++
dateStrings[2] [19350429T00:00:00000]
date [Mon Apr 29 00:00:00 EDT 1935]
+++++++++++++++++++++
dateStrings[3] [19360425T00:00:00000]
date [Sat Apr 25 00:00:00 EST 1936]
+++++++++++++++++++++
dateStrings[4] [19360426T00:00:00000]
===== Exception parsing date [19360426T00:00:00000]
java.text.ParseException: Unparseable date: "19360426T00:00:00000"
at java.text.DateFormat.parse(DateFormat.java:335)
at TestSimpleDateFormat.dumpDates(TestSimpleDateFormat.java:91)
at TestSimpleDateFormat.main(TestSimpleDateFormat.java:38)
+++++++++++++++++++++
dateStrings[5] [19360427T00:00:00000]
date [Mon Apr 27 00:00:00 EDT 1936]
+++++++++++++++++++++
dateStrings[6] [19370424T00:00:00000]
date [Sat Apr 24 00:00:00 EST 1937]
+++++++++++++++++++++
dateStrings[7] [19370425T00:00:00000]
===== Exception parsing date [19370425T00:00:00000]
java.text.ParseException: Unparseable date: "19370425T00:00:00000"
at java.text.DateFormat.parse(DateFormat.java:335)
at TestSimpleDateFormat.dumpDates(TestSimpleDateFormat.java:91)
at TestSimpleDateFormat.main(TestSimpleDateFormat.java:38)
+++++++++++++++++++++
dateStrings[8] [19370426T00:00:00000]
date [Mon Apr 26 00:00:00 EDT 1937]
+++++++++++++++++++++
dateStrings[9] [19610429T00:00:00000]
date [Sat Apr 29 00:00:00 EST 1961]
+++++++++++++++++++++
dateStrings[10] [19610430T00:00:00000]
date [Sun Apr 30 00:00:00 EST 1961]
+++++++++++++++++++++
dateStrings[11] [19610501T00:00:00000]
date [Mon May 01 00:00:00 EDT 1961]
+++++++++++++++++++++
dateStrings[12] [20040401T00:00:00000]
date [Thu Apr 01 00:00:00 EST 2004]
+++++++++++++++++++++
dateStrings[13] [20060402T00:00:00000]
date [Sun Apr 02 00:00:00 EST 2006]
+++++++++++++++++++++
dateStrings[14] [20060403T00:00:00000]
date [Mon Apr 03 00:00:00 EDT 2006]
+++++++++++++++++++++
============================================
- relates to
-
JDK-4266783 java.util.GregorianCalendar: incorrect validation in non-lenient
- Resolved