JDK-8000986 : Split java.util.spi.CalendarDataProvider into week parameters and field names portions
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-10-16
  • Updated: 2017-05-17
  • Resolved: 2012-11-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b66Fixed
Related Reports
Relates :  
Relates :  
Description
java.util.spi.CalendarDataProvider was added in b55 so that week parameters and calendar field names can be obtained from various sources. However, the week parameters are dependent on countries, while field names are dependent on languages. Sharing the getAvailableLocales and isSupportedLocale methods is problematic. The SPI should be split.
Comments
java.util.spi.CalendarDataProvider is split to: java.util.spi.CalendarDataProvider: protected CalendarDataProvider() public abstract int getFirstDayOfWeek(Locale locale) public abstract int getMinimalDaysInFirstWeek(Locale locale) java.util.spi.CalendarNameProvider (new): protected CalendarNameProvider() public abstract String getDisplayName(String calendarType, int field, int value, int style, Locale locale) public abstract Map<String,Integer> getDisplayNames(String calendarType, int field, int style, Locale locale)
11-11-2012

Setting component and subcomponent.
17-10-2012