Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4239

Support Locale.forLanguageTag()

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 9.0.0.CR1
    • 9.0.0.Alpha1
    • None
    • None

      The rules for Locale are different in JDK 6 vs 7, and this getLocale() method was written to conform to the JDK 6 rules. Hence it assumes 2 chars for language, 2 chars for country. Beginning with JDK 7 things are much more complex, and we don't support that. The language can be up to 8 chars, country can be [a-zA-Z]

      {2}

      | [0-9]

      {3}

      , there's the "script" element, and most importantly, Locale.forLanguageTag().

      It would be nice to at least support Locale.forLanguageTag().

              rpelisse@redhat.com Romain Pelisse
              rpelisse@redhat.com Romain Pelisse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: