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

Locale.Builder.setLanguageTag(String) does not clear on empty or null String

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 26
    • core-libs
    • None
    • Fix Understood
    • generic
    • generic

      Locale.Builder.setLanguageTag(String) is specified to clear the builder on an empty or null String.

      Instead, a java.util.IllformedLocaleException is thrown for an empty tag and a java.lang.NullPointerException is thrown for a null tag.

            jlu Justin Lu
            jlu Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: