Please review java.util.formatter bug fix

roger riggs roger.riggs at
Tue Aug 13 19:06:32 UTC 2013


The tests for java.util.Formatter were failing in the th_TH locale.
The test incorrectly relied on the locale defined calendar instantiation.
Java.util.formatter should be using YEAR_OF_ERA to extract the year
to get consistent results with the Japanese Calendar, for the other
calendars it does not change the values.
The tests are extended to explicitly test the Gregorian, Japanese, and
ThaiBuddist calendar formatting using both the Java.util.Calendar and
ChronoZonedDateTime calendars.


Thanks, Roger

More information about the core-libs-dev mailing list