From fiestaspuntonet at gmail.com Fri Feb 6 08:31:25 2009 From: fiestaspuntonet at gmail.com (Fiestas .Net) Date: Fri, 6 Feb 2009 17:31:25 +0100 Subject: getCalendarInstance for Service Provider Interface Message-ID: Hello, I made a SPI extension that implements Basque (eu_ES) locale at: http://java-basque-locale.googlecode.com One of the users of the extension has reported an issue about Calendar.getCalendarInstance(basqueLocale) method. It happens that for the Basque Locale I developed the calendar it returns has as the firstDayOfTheWeek the Sunday, when it should be the Monday. But I haven't found any abstract method to resolve the issue. Is there any way to do it? Thank you. From Naoto.Sato at Sun.COM Fri Feb 6 13:00:23 2009 From: Naoto.Sato at Sun.COM (Naoto Sato) Date: Fri, 06 Feb 2009 13:00:23 -0800 Subject: getCalendarInstance for Service Provider Interface In-Reply-To: References: Message-ID: <498CA4E7.1020005@Sun.COM> Unfortunately, you cannot provide Calendar instances for your locale through the SPI. The caller could set the firstDayOfWeek on the instantiated calendar object, though. Thanks, Naoto Fiestas .Net wrote: > Hello, > > I made a SPI extension that implements Basque (eu_ES) locale at: > > http://java-basque-locale.googlecode.com > > One of the users of the extension has reported an issue about > Calendar.getCalendarInstance(basqueLocale) method. It happens that for > the Basque Locale I developed the calendar it returns has as the > firstDayOfTheWeek the Sunday, when it should be the Monday. > > But I haven't found any abstract method to resolve the issue. > > Is there any way to do it? > > Thank you. -- Naoto Sato