-
Bug
-
Resolution: Fixed
-
P4
-
6u13
-
b91
-
x86
-
windows_xp
-
Verified
FULL PRODUCT VERSION :
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
OS independent
A DESCRIPTION OF THE PROBLEM :
The file
sun/ util/ resources/ CalendarData_hu.properties
holds two values:
firstDayOfWeek=2
minimalDaysInFirstWeek=1
But Hungary is a land of the European Union. The minimal days for the first week in year are 4, not 1!
The Calendar.get (WEEK_OF_YEAR) returns for 01.01.2010 the week 1, but it is the week 53.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Initialize a Calendar with a day in 2010 and read out the WEEK_OF_YEAR. The value is wrong for 2010. eg. 1 for 1st Jan 2010.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Initialize a Calendar with a day in 2010 and read out the WEEK_OF_YEAR. The value is should be 52 for 1st Jan 2010.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Manually set the
Calendar#setMinimalDaysInFirstWeek(4);
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
OS independent
A DESCRIPTION OF THE PROBLEM :
The file
sun/ util/ resources/ CalendarData_hu.properties
holds two values:
firstDayOfWeek=2
minimalDaysInFirstWeek=1
But Hungary is a land of the European Union. The minimal days for the first week in year are 4, not 1!
The Calendar.get (WEEK_OF_YEAR) returns for 01.01.2010 the week 1, but it is the week 53.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Initialize a Calendar with a day in 2010 and read out the WEEK_OF_YEAR. The value is wrong for 2010. eg. 1 for 1st Jan 2010.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Initialize a Calendar with a day in 2010 and read out the WEEK_OF_YEAR. The value is should be 52 for 1st Jan 2010.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Manually set the
Calendar#setMinimalDaysInFirstWeek(4);