JDK-6909865 : getFirstDayOfWeek() incorrect for Slovenian locale
  • Type: Bug
  • Component: globalization
  • Sub-Component: locale-data
  • Affected Version: 6u12
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 2009-12-11
  • Updated: 2012-12-20
  • Resolved: 2010-04-15
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 7
7Resolved
Related Reports
Duplicate :  
Description
1) Exact steps to reproduce the problem
Create a Calendar with locale=si (Slovenia) and print getFirstDayOfWeek(). It returns Sunday instead of Monday.

2) Source Code that demonstrates the problem
      System.out.println ("First day of week for sl locale is " +
Calendar.getInstance (new Locale ("sl")).getFirstDayOfWeek());
      System.out.println ("First day of week for sl_SI locale is " +
Calendar.getInstance (new Locale ("sl", "SI")).getFirstDayOfWeek());
      System.out.println ("Calendar.SUNDAY = " + Calendar.SUNDAY + ", Mon = " + Calendar.MONDAY);

Output:
First day of week for sl locale is 1
First day of week for sl_SI locale is 1
Calendar.SUNDAY = 1, Mon = 2

Comments
EVALUATION This bug is duplicated of 6910489, which is targeted to release 7 and has been fixed.
15-04-2010