Closed sunmingtao closed 3 years ago
It fails on the static block in DateFormatUtils
public static final FastDateFormat SMTP_DATETIME_FORMAT = FastDateFormat.getInstance("EEE, dd MMM yyyy HH:mm:ss Z", Locale.US);
https://bugzilla.redhat.com/show_bug.cgi?id=1837376. There is a bug in OpenJDK
"Additional item on Fedora is "America/Nuuk", which is an existing timezone. Problem with that timezone is, it does not have short and long names. In result array, short and long name is null. Method SimpleDateFormat.matchZoneString() does not expect null for short and long name, there is no null-check. Because of that, NPE is the result of the call. According to JDK documentation, NPE should not happen in SimpleDateFormat.parse()"
Run a java 11 program First time:
Subsequent times