You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2024/06/04 15:25:00 UTC
[jira] [Updated] (AXIS2-6068) ConverterUtilTest is locale-dependent
[ https://issues.apache.org/jira/browse/AXIS2-6068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Lazarski updated AXIS2-6068:
-----------------------------------
Fix Version/s: 1.8.3
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org