Steven DH created AXIS2-6068:
--------------------------------
Summary: ConverterUtilTest is locale-dependent
Key: AXIS2-6068
URL: https://issues.apache.org/jira/browse/AXIS2-6068
Project: Axis2
Issue Type: Bug
Components: adb
Reporter: Steven DH
When I ran tests with LANG=nl_BE.UTF-8 (Ubuntu), I got an assertion error in
ConverterUtilTest.testCompareBigIntegerValueIsGreaterThanOrEqualToTotalDigitsFacetRestriction:587:
{code:java}
Expecting actual:
-9000L
to be greater than or equal to:
0L{code}
I inserted some print statements, and IIUC the decimalNotationString on line
583 ("1000.0") is interpreted according to locale, so ignoring the "." which is
a thousands separator in my part of the world, and you get 10000.
This did not occur when I ran this test with LANG=C. Also, if the
toPlainString method would also work according to locale, this would not be a
problem. But where the actual bug and its solution lie, that's for someone
more knowledgeable than me to determine.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]