--- old/src/macosx/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java 2012-11-10 09:36:16.000000000 +0900 +++ new/src/macosx/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java 2012-11-10 09:36:15.000000000 +0900 @@ -41,6 +41,7 @@ import java.util.concurrent.ConcurrentMap; import java.util.concurrent.atomic.AtomicReferenceArray; import java.util.spi.CalendarDataProvider; +import java.util.spi.CalendarNameProvider; import java.util.spi.CurrencyNameProvider; import java.util.spi.LocaleNameProvider; import java.util.spi.TimeZoneNameProvider; @@ -324,25 +325,39 @@ } @Override - public String getDisplayName(String calType, int field, int value, - int style, Locale locale) { - return null; + public int getFirstDayOfWeek(Locale locale) { + return getCalendarInt(locale.toLanguageTag(), CD_FIRSTDAYOFWEEK); } @Override - public Map getDisplayNames(String calType, - int field, int style, Locale locale) { - return null; + public int getMinimalDaysInFirstWeek(Locale locale) { + return getCalendarInt(locale.toLanguageTag(), CD_MINIMALDAYSINFIRSTWEEK); } + }; + } + public static CalendarNameProvider getCalendarNameProvider() { + return new CalendarNameProvider() { @Override - public int getFirstDayOfWeek(Locale locale) { - return getCalendarInt(locale.toLanguageTag(), CD_FIRSTDAYOFWEEK); + public Locale[] getAvailableLocales() { + return getSupportedCalendarLocales(); } @Override - public int getMinimalDaysInFirstWeek(Locale locale) { - return getCalendarInt(locale.toLanguageTag(), CD_MINIMALDAYSINFIRSTWEEK); + public boolean isSupportedLocale(Locale locale) { + return isSupportedCalendarLocale(locale); + } + + @Override + public String getDisplayName(String calType, int field, int value, + int style, Locale locale) { + return null; + } + + @Override + public Map getDisplayNames(String calType, + int field, int style, Locale locale) { + return null; } }; }