mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8228465: HOST locale provider holds wrong era name for GregorianCalendar in US locale
Reviewed-by: lancea
This commit is contained in:
parent
d711c4e18e
commit
11ab995e6c
3 changed files with 32 additions and 7 deletions
|
@ -2205,7 +2205,8 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
|
|||
}
|
||||
|
||||
String calendarType = getCalendarType();
|
||||
if (style == ALL_STYLES || isStandaloneStyle(style) || isNarrowFormatStyle(style)) {
|
||||
if (style == ALL_STYLES || isStandaloneStyle(style) || isNarrowFormatStyle(style) ||
|
||||
field == ERA && (style & SHORT) == SHORT) {
|
||||
Map<String, Integer> map;
|
||||
map = CalendarDataUtility.retrieveFieldValueNames(calendarType, field, style, locale);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue