United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6910489 Slovenia Locale, wrong firstDayOfWeek number
JDK-6910489 : Slovenia Locale, wrong firstDayOfWeek number

Details
Type:
Bug
Submit Date:
2009-12-15
Status:
Closed
Updated Date:
2012-12-20
Project Name:
JDK
Resolved Date:
2010-01-27
Component:
globalization
OS:
solaris_8,solaris_2.5.1
Sub-Component:
locale-data
CPU:
x86,sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u12,6u16
Fixed Versions:

Related Reports
Backport:
Duplicate:

Sub Tasks

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.
                                     
2009-12-18



Hardware and Software, Engineered to Work Together