[jboss-jira] [JBoss JIRA] (WFLY-4239) Support Locale.forLanguageTag()

Romain Pelisse (JIRA) issues at jboss.org
Mon Jan 26 11:30:49 EST 2015


    [ https://issues.jboss.org/browse/WFLY-4239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13035118#comment-13035118 ] 

Romain Pelisse commented on WFLY-4239:
--------------------------------------

WFCORE-521 has been merged, so here is the PR: https://github.com/wildfly/wildfly-core/pull/456

> Support Locale.forLanguageTag() 
> --------------------------------
>
>                 Key: WFLY-4239
>                 URL: https://issues.jboss.org/browse/WFLY-4239
>             Project: WildFly
>          Issue Type: Feature Request
>          Components: Localization
>    Affects Versions: 9.0.0.Alpha1
>         Environment: JDK 7
>            Reporter: Romain Pelisse
>            Assignee: Romain Pelisse
>            Priority: Minor
>
> 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().



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list