<i18n dev> RFR: 8151876: (tz) Support tzdata2016d
ramanand.patil at oracle.com
Mon May 30 18:03:14 UTC 2016
Hi Masayoshi and All,
Here is the updated Webrev: http://cr.openjdk.java.net/~rpatil/8151876/webrev.01/
As suggested by Masayoshi, I have kept the existing names unchanged.
Also, this patch contains extra test case fixes for
The exclusion for the newly added TimeZones is added in these test cases where the entries are not present in the resources and the Short/Long display names fallback to the GMT±hh:mm format.
From: Masayoshi Okutsu
Sent: Saturday, May 28, 2016 10:58 AM
To: Seán Coffey; Ramanand Patil; i18n-dev at openjdk.java.net; core-libs-dev at openjdk.java.net
Subject: Re: RFR: 8151876: (tz) Support tzdata2016d
CLDR locale data defines time zone names, like this (in en.xml):
<standard>Almaty Standard Time</standard>
<daylight>Almaty Summer Time</daylight>
The CLDR converter tool tries to fill in the missing short names from the legacy TimeZoneNames data. Removing existing names causes some unexpected behavior. I think JDK-8157814 is an example of the unexpected behavior. And the suggested fix in JDK-8157814 looks to me like a workaround.
I still think the existing names should be kept unchanged for this fix.
On 5/28/2016 12:04 AM, Seán Coffey wrote:
I guess there's a low risk of timezone not being identified if being parsed in through a formatter. Isn't such an approach discouraged though ? short IDs were already subject to change in tzdata releases. Ramanand found one issue by removal of these resource strings (so far) and that's captured in JDK-8157814
There's a decision to be made about how to use the GMT±hh:mm format for new releases given IANA's new short ID identifier mechanism. I think that could be discussed as a separate issue. I'd like to see us follow a similar approach to IANA and use GMT identifiers on new timezones and perhaps even consider using the IANA long name format also for the getDisplayName(..) calls that can be made. e.g. "Asia/Almaty" instead of "Alma-Ata Time"
On 27/05/16 15:24, Masayoshi Okutsu wrote:
This change seems to beyond my proposal that the "GMT±hh:mm" format is used for *new* zones with the "±hh" format. But this change removes *existing* zones which have changed to use the "±hh" format in tzdata. Can this cause any compatibility issues?
And have we agreed to use the "GMT±hh:mm" format?
On 5/27/2016 10:19 PM, Seán Coffey wrote:
Looks fine to me Ramanand. the recent 2016d changes have introduced some boundary issues for JDK rule parsing and those issues can be followed up in separate issues like you say.
On 26/05/16 14:22, Ramanand Patil wrote:
Please review the latest TZDATA integration (tzdata2016d) to JDK9.
Webrev: HYPERLINK "http://cr.openjdk.java.net/%7Erpatil/8151876/webrev.00/"http://cr.openjdk.java.net/~rpatil/8151876/webrev.00/
1. IANA tzdata2016d integration into JDK. [It also includes tzdata2016b and tzdata2016c which was not integrated].
2. "GMT[+ -]hh:mm" is used for formatting of the modified or newly added TimeZones in tzdata2016d.
[This is done to accommodate the IANA's new system where the zones use numeric time zone abbreviations like "+04" instead of invented abbreviations like "ASTT".]
3. Test case: java/time/test/java/time/format/TestZoneTextPrinterParser.java is updated to include the failures because of GMT[+ -]hh:mm format names.
4. Few other failing tests: For few other failing tests, new linked bugs are created and will be addressed in a separate patch.
More information about the i18n-dev