JDK-6497154 : getFirstDayOfWeek() not works correctly for Slovak locale
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-11-24
  • Updated: 2011-02-16
  • Resolved: 2007-06-30
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.
Other JDK 6 JDK 7
5.0u12Fixed 6u4 b01Fixed 7Fixed
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
MS Windows XP (5.1.2600)

A DESCRIPTION OF THE PROBLEM :
Calendar.getInstance().getFirstDayOfWeek() returns SUNDAY for SK locale (Slovakia)


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
set default locale to SK (Slovak Republic)
get first day of week from Calendar.getInstance()


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
it should return MONDAY
ACTUAL -
returns SUNDAY


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION j2se:src/share/classes/sun/util/resources/CalendarData_sk.properties ------- CalendarData_sk.properties ------- 25a26,29 > > firstDayOfWeek=2 > minimalDaysInFirstWeek=4 j2se:test/sun/text/resources/ ------- LocaleData ------- > # bugs 6497154 > CalendarData/sk/firstDayOfWeek=2 > CalendarData/sk/minimalDaysInFirstWeek=4 > ------- LocaleDataTest.java ------- 10c10 < * 6414459 6455680 6498742 6533691 6547501 6531591 6531593 --- > * 6414459 6455680 6498742 6533691 6547501 6531591 6531593 4225362 6497154
14-06-2007

EVALUATION Fix: j2se:src/share/classes/sun/util/resources/CalendarData_sk.properties add firstDayOfWeek=2 minimalDaysInFirstWeek=4
08-01-2007

EVALUATION This is correct request, verified with CLDR as well as the native slovak speakers.
05-12-2006

EVALUATION bug like 6414459. we should file subCRs for 7.0 and 5.0u12, right?
27-11-2006