JDK-6609404 : First day of the week is Monday in Croatia and not Sunday.
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2007-09-26
  • Updated: 2010-07-29
  • Resolved: 2008-01-04
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
1.4.2_07-b05
1.5.0_02

ADDITIONAL OS VERSION INFORMATION :
Windows 2000, Windows 2003

A DESCRIPTION OF THE PROBLEM :
According with ISO standards first day of week is Monday for Croatia and not Sunday as java returns.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set default locale to HR_HR and just print
Calendar.getInstance().getFirstDayOfWeek()
It will return Calendar.SUNDAY and not Calendar.MONDAY.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
my piece of code (see "Source code for an executable test case") should return 2 (Calendar.Monday)

HR_HR = 2

ACTUAL -
Calendar.SUNDAY = 1

HR_HR = 1



REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
====start of source code=======

Locale.setDefault(new Locale("HR", "HR"));
System.out.println("HR_HR = "+Calendar.getInstance().getFirstDayOfWeek());

====end of source code=======

---------- END SOURCE ----------

Comments
EVALUATION This bug got fixed in 5.0u12 and fixed in 6 fcs. 142_xx is not fixed yet.
04-01-2008

EVALUATION I tried with the 1.5.0_12 the bug is not reproducible, it returns propper value. It is also not possible to reproduce with 6u2 nor 1.7. Please upgrade your 5UR installation. The bug exists in 1.4.2_15. Giving to the sustaining team.
03-10-2007

EVALUATION Assign to Jiri who is in charge of Locale Elements in l10n team. Hi Jiri, please add the urxxx-l10n format keyword, when you decide the build in which to integrate the fix.
26-09-2007