[jboss-jira] [JBoss JIRA] (WFLY-4228) Fallback locale should be ROOT, and not Locale.getDefault()

Brian Stansberry (JIRA) issues at jboss.org
Fri Jul 17 09:42:05 EDT 2015


     [ https://issues.jboss.org/browse/WFLY-4228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry resolved WFLY-4228.
------------------------------------
    Resolution: Rejected


I'm assuming the WFCORE issue is the relevant one. If not and there's some task specific to WFLY, feel free to re-open with an updated description.

> Fallback locale should be ROOT, and not Locale.getDefault()
> -----------------------------------------------------------
>
>                 Key: WFLY-4228
>                 URL: https://issues.jboss.org/browse/WFLY-4228
>             Project: WildFly
>          Issue Type: Enhancement
>          Components: CLI, Domain Management
>    Affects Versions: 9.0.0.Alpha1
>         Environment: Any system with default locale set to something diffirent from english
>            Reporter: Romain Pelisse
>            Assignee: Romain Pelisse
>            Priority: Minor
>
> While investigating WFLY-3723, I found out that when a bundle for a specified locale can not be found, Wildfly code fallbacks to Locale.getDefault, rather than use the Locale.ROOT. This is a side effect on non-english system, because there is no bundle for "en_US", and root should be used in this case.
> I proposed to fix it by replacing all relevant occurences of Locale.getDefault() by Locale.ROOT. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list