Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5464

compare fails with big unsignedlongs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: adb
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dnicol80 Daniel Nicolaevsky
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: