Where : Y2K testing on Linux platform.
Did not show on JDK122_006 on Linux but shows on JDK122_007.
How to run : javac test_SimpleDateFormat.java
java test_SimpleDateFormat
See Attachment for the testcase
Output
------
JDK122_007 in Solaris and Windows gives
----------------
Normal date:
Fri Mar 13 12:22:43 PST 1998
2000 date:
Tue Feb 29 13:40:22 PST 2000
1996 date:
Thu Feb 29 08:15:15 PST 1996
BUT JDK122_007 IN LINUX GIVES
------------
Normal date:
Fri Mar 13 12:22:43 GMT-08:00 1998
2000 date:
Tue Feb 29 13:40:22 GMT-08:00 2000
1996 date:
Thu Feb 29 08:15:15 GMT-08:00 1996
Did not show on JDK122_006 on Linux but shows on JDK122_007.
How to run : javac test_SimpleDateFormat.java
java test_SimpleDateFormat
See Attachment for the testcase
Output
------
JDK122_007 in Solaris and Windows gives
----------------
Normal date:
Fri Mar 13 12:22:43 PST 1998
2000 date:
Tue Feb 29 13:40:22 PST 2000
1996 date:
Thu Feb 29 08:15:15 PST 1996
BUT JDK122_007 IN LINUX GIVES
------------
Normal date:
Fri Mar 13 12:22:43 GMT-08:00 1998
2000 date:
Tue Feb 29 13:40:22 GMT-08:00 2000
1996 date:
Thu Feb 29 08:15:15 GMT-08:00 1996
- relates to
-
JDK-4209272 Regression: SimpleDateFormat w/lenient mode false, throws exception for Feb 29
-
- Resolved
-