[
https://issues.apache.org/jira/browse/AXIS2-5968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Lazarski updated AXIS2-5968:
-----------------------------------
Affects Version/s: 2.0.0
(was: 1.7.9)
> 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: 2.0.0
> Reporter: Alan Morgan
> Assignee: Robert Lazarski
> Priority: Minor
>
> 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.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]