The specification currently states the following:
"To facilitate BCP 47 support, the Locale parsing mentioned above is done only if the JDK Locale.languageForTag method does not return a Locale with a language in it. The additional format of the Locale string is as specified by that method."
However, the method is actually Locale.forLanguageTag.
The specification currently states the following:
"To facilitate BCP 47 support, the Locale parsing mentioned above is done only if the JDK Locale.languageForTag method does not return a Locale with a language in it. The additional format of the Locale string is as specified by that method."
However, the method is actually Locale.forLanguageTag.