[
https://issues.apache.org/jira/browse/XMLBEANS-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17534869#comment-17534869
]
Yanick Vuille commented on XMLBEANS-606:
----------------------------------------
We use XMLBeans to validate an XML file based on classes generated from xsd
files.
So we uses 'XMLError.getMessage()' to get the error message, there's no
'getLocalizedMessage()' on XMLError.
The message with version 3 was something like this:
'decimal value (73'551'112'117) is less than minInclusive facet
(7'560'000'000'002) for ...'
and now the message is like this:
'decimal value (73,551,112,117) is less than minInclusive facet
(7,560,000,000,002) for ...'
Previously, we could set the default locale like this:
'Locale.setDefault(Locale.Category.FORMAT, new Locale("de", "CH"))' and it was
used but now the class ignore the default locale
> XMLError don't respect default Locale for number formatting
> -----------------------------------------------------------
>
> Key: XMLBEANS-606
> URL: https://issues.apache.org/jira/browse/XMLBEANS-606
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 5.0.3
> Reporter: Yanick Vuille
> Priority: Major
>
> The class XMLError uses `Locale.ROOT` to format messages instead of using
> `Locale.getDefault()`.
> This results in badly formatted error messages. The separators are not
> necessarily the right ones depending on the locale.
> Version 3 took into account the default locale, since version 4 the locale is
> forced to 'Locale.ROOT'
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]