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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to