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 "Alan Morgan (Jira)" <ji...@apache.org> on 2019/10/02 19:52:00 UTC
[jira] [Created] (AXIS2-5968) ConverterUtil.compare fails when
comparing against very small numbers
Alan Morgan created AXIS2-5968:
----------------------------------
Summary: ConverterUtil.compare fails when comparing against very small numbers
Key: AXIS2-5968
URL: https://issues.apache.org/jira/browse/AXIS2-5968
Project: Axis2
Issue Type: Bug
Affects Versions: 1.7.9
Reporter: Alan Morgan
ConverterUtil.compare(0L, "-9223372036854775808") incorrectly returns a negative number. The implementation:
{{public static long compare(long longValue, String value) {}}
{{ return longValue - Long.parseLong(value);}}
{{ }}}
suffers from overflow if "value" is very small. The same bug exists for other compare methods.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org