<Swing Dev> RFR: 8263481: Specification of JComponent::setDefaultLocale doesn't mention that passing 'null' restores VM's default locale [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Wed Mar 17 08:03:39 UTC 2021


> 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.

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Test modification

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3003/files
  - new: https://git.openjdk.java.net/jdk/pull/3003/files/acc270ea..d35284f6

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3003&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3003&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3003.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3003/head:pull/3003

PR: https://git.openjdk.java.net/jdk/pull/3003


More information about the swing-dev mailing list