JDK-6558863 : time formats for en_AU and en_NZ are wrong using the CLDR as reference
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 1.4.2,6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,windows_2003
  • CPU: x86
  • Submitted: 2007-05-17
  • Updated: 2011-04-08
  • Resolved: 2011-04-08
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 6 JDK 7
6u10Fixed 7 b18Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
windows 2003 sp2

A DESCRIPTION OF THE PROBLEM :
according to the CLDR, en_AU & en_NZ use "h:mm:ss a" time pattern. common practice also indicates the pattern should be "h:mm:ss a".  however core java seems to use "H:mm:ss" which means it can't correctly format or parse commonly used time patterns from those locales.



REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
use icu4j but applications like adobe's coldfusion are stuck w/core java locale data.

Comments
EVALUATION Fix: j2se:src/share/classes/sun/text/resources/FormatData_en_AU.java j2se:src/share/classes/sun/text/resources/FormatData_en_NZ.java ------- FormatData_en_AU.java ------- 54c54 < "H:mm:ss", // long time pattern --- > "h:mm:ss a", // long time pattern ------- FormatData_en_NZ.java ------- 54c54 < "H:mm:ss", // long time pattern --- > "h:mm:ss a", // long time pattern test: j2se:test/closed/sun/text/resources/LocaleDataTest.java j2se:test/closed/sun/text/resources/LocaleData modify: > # bug #4094371, 4098518, 4290801, 6558863 292c292 < FormatData/en_AU/DateTimePatterns/1=H:mm:ss --- > FormatData/en_AU/DateTimePatterns/1=h:mm:ss a 315c315 < FormatData/en_NZ/DateTimePatterns/1=H:mm:ss --- > FormatData/en_NZ/DateTimePatterns/1=h:mm:ss a
21-05-2007

EVALUATION change responsible engineer to Jiri. sorry that I did not realize Jiri is in charge of locale bug including non-eu locales.
18-05-2007

EVALUATION condisering the request approval, will first fix and integrate it in java 7 and then move to jdk 6 update. Plan to integrate in 6u4 first.
18-05-2007