< prev index next >
src/java.base/share/classes/java/util/Calendar.java
Print this page
rev 55815 : [mq]: 8228465
@@ -2203,11 +2203,12 @@
ERA_MASK|MONTH_MASK|DAY_OF_WEEK_MASK|AM_PM_MASK)) {
return null;
}
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);
// Perform fallback here to follow the CLDR rules
if (map == null) {
< prev index next >