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

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 26
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: