-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
16
-
x86_64
-
linux
A DESCRIPTION OF THE PROBLEM :
JDK16+25 cannot parse a simple date:
See: https://travis-ci.org/github/graphhopper/graphhopper/jobs/744890249
REGRESSION : Last worked in version 16
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
no error
ACTUAL -
ParseException at java.base/java.text.DateFormat.parse(DateFormat.java:396)
---------- BEGIN SOURCE ----------
DateFormat df = new SimpleDateFormat("yyyy MMM dd", Locale.UK);
df.setTimeZone(TimeZone.getTimeZone("UTC"));
df.parse("2015 Sep 30"); // => java.text.ParseException: Unparseable date: "2015 Sep 30"
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
This does not happen with JDK16+24: https://travis-ci.org/github/graphhopper/graphhopper/jobs/744725038
JDK16+25 cannot parse a simple date:
See: https://travis-ci.org/github/graphhopper/graphhopper/jobs/744890249
REGRESSION : Last worked in version 16
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
no error
ACTUAL -
ParseException at java.base/java.text.DateFormat.parse(DateFormat.java:396)
---------- BEGIN SOURCE ----------
DateFormat df = new SimpleDateFormat("yyyy MMM dd", Locale.UK);
df.setTimeZone(TimeZone.getTimeZone("UTC"));
df.parse("2015 Sep 30"); // => java.text.ParseException: Unparseable date: "2015 Sep 30"
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
This does not happen with JDK16+24: https://travis-ci.org/github/graphhopper/graphhopper/jobs/744725038
- duplicates
-
JDK-8293917 SimpleDateFormat yy-MMM-dd formats September as Sept
- Closed
-
JDK-8281302 Fatal parse errors: shortname for September has been changed in Locale.UK.
- Closed
-
JDK-8273437 java.text.SimpleDateFormat fails to parse 3 letter month 'Sep'
- Closed
-
JDK-8297127 bug in DateTimeFormatter when using "MMM" (outputs Sept instead of Sep)
- Closed
- relates to
-
JDK-8251317 Update CLDR to version 38.0
- Resolved