JDK-8013836 : getFirstDayOfWeek reports wrong day for pt-BR locale
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: globalization
  • Sub-Component: locale-data
  • Priority: P3
  • Affected Version: 7
  • Submit Date: 2013-03-20
  • Updated Date: 2015-07-31
  • Resolved Date: 2013-06-26
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u60Resolved 8 b98Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
All

A DESCRIPTION OF THE PROBLEM :
getFirstDayOfWeek returns MONDAY in pt-BR locale, the correct return most be SUNDAY

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just call getFirstDayOfWeek with pt-BR locale

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
SUNDAY
ACTUAL -
MONDAY

REPRODUCIBILITY :
This bug can be reproduced always.
Comments
No failures in the nighlty results. SQE OK to take the fix into CPU14_03
2014-05-08

Backport to jdk7u is requested since many products (ex: FMW/FA) are still running on jdk7. Risk is low. The fix is to add a new locale data file with 2 lines of code: src/share/classes/sun/util/resources/pt/CalendarData_pt_BR.properties +firstDayOfWeek=1 +minimalDaysInFirstWeek=1
2014-05-02

Verified in b98.
2013-07-16

In CLDR (supplementaldata.xml), the first day of week in BR is Sunday. Change firstDayOfWeek=2 in jdk/src/share/classes/sun/util/resources/pt/CalendarData_pt.properties to firstDayOfWeek=1
2013-06-03