Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263481

Specification of JComponent::setDefaultLocale doesn't mention that passing 'null' restores VM's default locale

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15, 16, 17
    • Fix Version/s: 17
    • Component/s: client-libs
    • Labels:

      Description

      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 for newly created JComponents.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: