On Mon, 15 Mar 2021 06:52:15 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> The current state of specification for > https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/JComponent.html#setDefaultLocale(java.util.Locale) > doesn't mention anything about passing 'null' as a new default locale. > > In fact for OpenJDK implementation passing 'null' restores the default VM's > locale. > This is now explicitly stated in javadoc. This pull request has now been integrated. Changeset: d24e4cfe Author: Prasanta Sadhukhan <psadhuk...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/d24e4cfe Stats: 50 lines in 2 files changed: 50 ins; 0 del; 0 mod 8263481: Specification of JComponent::setDefaultLocale doesn't mention that passing 'null' restores VM's default locale Reviewed-by: aivanov ------------- PR: https://git.openjdk.java.net/jdk/pull/3003