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 "Daniel Nicolaevsky (JIRA)" <ji...@apache.org> on 2012/12/06 21:09:08 UTC

[jira] [Created] (AXIS2-5464) compare fails with big unsignedlongs

Daniel Nicolaevsky created AXIS2-5464:
-----------------------------------------

             Summary: compare fails with big unsignedlongs
                 Key: AXIS2-5464
                 URL: https://issues.apache.org/jira/browse/AXIS2-5464
             Project: Axis2
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.6.2
         Environment: Windows XP
            Reporter: Daniel Nicolaevsky


When code is generated based on the following part of the  wsdl: 

<s:restriction base="s:unsignedLong">
   <s:minInclusive value="1"/>
   <s:maxInclusive value="9999999999999999999"/>
</s:restriction>

org.apache.axis2.databinding.utils compare method will try to convert "9999999999999999999" string to java long type and will result in a NumberFormatException will be thrown although the number fits in a UnsignedLong type.

I think that it could be solved by using BigInteger instead of long as the java type for this comparissons.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org