mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8331866: Add warnings for locale data dependence
Reviewed-by: jlu, srl, joehw
This commit is contained in:
parent
d215bc4647
commit
65abf24fde
1 changed files with 6 additions and 1 deletions
|
@ -152,6 +152,11 @@ import java.util.Locale;
|
|||
* supported by the Java runtime environment. The following table lists the
|
||||
* version of CLDR used in each JDK release. Unless otherwise specified, all
|
||||
* update releases in a given JDK release family use the same CLDR version.
|
||||
* Note that the CLDR locale data are subject to change. Users should not assume
|
||||
* that the locale data remain the same across CLDR versions. Otherwise, unexpected
|
||||
* incompatible behaviors may occur, such as an exception on parsing a date.
|
||||
* Refer to <a href="https://cldr.unicode.org/index/downloads">CLDR Releases</a>
|
||||
* for the deltas between their releases.
|
||||
* <table class="striped">
|
||||
* <caption style="display:none">JDK releases and supported CLDR versions</caption>
|
||||
* <thead>
|
||||
|
@ -264,7 +269,7 @@ public abstract class LocaleServiceProvider {
|
|||
for (Locale available : getAvailableLocales()) {
|
||||
if (locale.equals(available.stripExtensions())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue