Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/java.base/share/classes/java/util/Locale.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,13 @@
* {@code Locale} always canonicalizes to lower case.</dd>
*
* <dd> <em>Syntax:</em> Well-formed {@code language} values have the form {@code [a-zA-Z]{2,8}}.</dd>
* <dd> <em> BCP 47 deviation:</em> this is not the full BCP 47 language production, since it excludes
* <dd> <em> BCP 47 deviation:</em> {@code Locale} does not retain the
* <a href="https://www.rfc-editor.org/rfc/rfc5646#section-2.2.2">extlang</a>
* (as modern three-letter language codes are preferred).</dd>
* subtag. This is because three-letter language codes are preferred over extlang
* subtags. When a {@code Locale} is created from a language tag containing an
* extlang subtag, the first extlang subtag is interpreted as the <i>language</i>
* field. The primary language subtag and any subsequent extlang subtags
* are ignored.</dd>
*
* <dd> <em>Example:</em> "en" (English), "ja" (Japanese), "kok" (Konkani)</dd>
*
Expand Down