The GitHub Actions job "Java CI" on commons-lang.git/fastdateprinter-era-calendar has failed. Run started by GitHub user alhudz (triggered by garydgregory).
Head commit for run: 3808d5df689df02c9bfc35cec9447d31f55d54f5 / Alhuda Khan <[email protected]> resolve FastDatePrinter era name from the calendar being formatted format(Calendar) applies the rules to the caller's calendar, so an era table chosen from the printer's locale alone mislabels a calendar of another type: a Gregorian calendar formatted by a ja_JP_JP printer has ERA=1 and printed the Meiji era name instead of the Gregorian AD name, and a th_TH printer printed the Buddhist era name for it. Replace the TextField era rule with an EraField rule that picks the name by the type of the calendar being formatted. The locale's own calendar still uses the prebuilt table, a Gregorian calendar keeps DateFormatSymbols.getEras(), and any other calendar is asked for its own era display name, as SimpleDateFormat does. The lookups are bounds checked, so a Japanese Imperial calendar formatted by a Gregorian locale no longer throws ArrayIndexOutOfBoundsException either. Report URL: https://github.com/apache/commons-lang/actions/runs/37208220955 With regards, GitHub Actions via GitBox
