]
Brian Stansberry updated WFLY-4228:
-----------------------------------
Component/s: Domain Management
(was: ConfigAdmin)
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.