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

Locale.Builder should fail on duplicate extensions and U-extension keywords/attributes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 26
    • core-libs
    • None

      Currently, `Locale.Builder.setLanguageTag(String)` allows duplicate extensions and U-extension keywords/attributes and silently ignores the duplicates.

      As the builder and this method are the strict means of creating a Locale from a language tag, it would be desirable to explicitly fail. The other (lenient) ways of creating a Locale can remain as is, i.e. silently ignore duplicates.

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: