mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8217366: ZoneStrings are not populated for all the Locales
Reviewed-by: rriggs
This commit is contained in:
parent
c6e45ea87c
commit
a862610527
2 changed files with 32 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -148,6 +148,12 @@ public class CLDRTimeZoneNameProviderImpl extends TimeZoneNameProviderImpl {
|
|||
|
||||
private void deriveFallbackName(String[] names, int index, Locale locale, boolean noDST) {
|
||||
if (exists(names, index)) {
|
||||
if (names[index].equals(NO_INHERITANCE_MARKER)) {
|
||||
// CLDR's "no inheritance marker"
|
||||
names[index] = toGMTFormat(names[INDEX_TZID],
|
||||
index == INDEX_DST_LONG || index == INDEX_DST_SHORT,
|
||||
index % 2 != 0, locale);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue