-
Bug
-
Resolution: Fixed
-
P4
-
13
-
b22
Compile and run the test case with default locale data providers or CLDR,COMPAT provider
Result: will get exception on below locales
el, el_CY, el_GR, fa, fa_AF, fa_IR, uk, uk_UA
--------BEGIN SOURCE---------
public static void findMissingJTS() {
LocalDate date = LocalDate.of(2019, 5, 1);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MM dd GGGG");
formatter = formatter.withChronology(JapaneseChronology.INSTANCE);
int num = 0;
for (Locale locale : Calendar.getAvailableLocales()) {
formatter = formatter.withLocale(locale);
try {
LocalDate.parse(date.format(formatter), formatter);
} catch (DateTimeParseException e) {
num++;
System.out.println("Missing JTS data for locale: " + locale);
}
}
if (num > 0) {
throw new RuntimeException("Missing some JTS data update");
}
}
----END SOURCE------
Result: will get exception on below locales
el, el_CY, el_GR, fa, fa_AF, fa_IR, uk, uk_UA
--------BEGIN SOURCE---------
public static void findMissingJTS() {
LocalDate date = LocalDate.of(2019, 5, 1);
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy MM dd GGGG");
formatter = formatter.withChronology(JapaneseChronology.INSTANCE);
int num = 0;
for (Locale locale : Calendar.getAvailableLocales()) {
formatter = formatter.withLocale(locale);
try {
LocalDate.parse(date.format(formatter), formatter);
} catch (DateTimeParseException e) {
num++;
System.out.println("Missing JTS data for locale: " + locale);
}
}
if (num > 0) {
throw new RuntimeException("Missing some JTS data update");
}
}
----END SOURCE------