JDK-6910489 : Slovenia Locale, wrong firstDayOfWeek number
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 6u12,6u16
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.5.1,solaris_8
  • CPU: x86,sparc
  • Submitted: 2009-12-15
  • Updated: 2012-12-20
  • Resolved: 2010-01-27
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 6 JDK 7
6u23Fixed 7 b80Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7600]

A DESCRIPTION OF THE PROBLEM :
Slovenian start of week is Monday, which is 2. Java locale/calendar shows 1.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a Slovenian locale and approrite calendare - retrieve firstDayOfWeek number.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected firstDayOfWeek to be 2.
ACTUAL -
firstDayOfWeek was 1.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Locale localeSl = new Locale("sl", "SI");
       
Calendar calendarSl = new GregorianCalendar(localeSl);
calendarSl.setTime(new Date());
System.out.println("Slo Today is day nr.: " +   calendarSl.get(Calendar.DAY_OF_WEEK));
System.out.println("Slo First day of week nr. is: " + calendarSl.getFirstDayOfWeek());
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Manually set firstDayOfWeek to 2.

Comments
EVALUATION I think fixing in 7 is enough. Porting to 6ur is optional.
18-12-2009