[
https://issues.apache.org/jira/browse/AXIS2-6068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852544#comment-17852544
]
Robert Lazarski commented on AXIS2-6068:
----------------------------------------
The statement placed in the failing test,
"{color:#000000}Locale.setDefault(Locale.US);{color}" seems to fix it - so, I
am closing the issue.
> 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
> Assignee: Robert Lazarski
> Priority: Minor
> Fix For: 1.8.3
>
>
> 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]