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

To download the current JDK release, click here.
JDK 7 JDK 8
7u60Fixed 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
08-05-2014

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
02-05-2014

Verified in b98.
16-07-2013

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
03-06-2013