axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mirko Zeibig (JIRA)" <>
Subject [jira] Created: (AXIS2-2128) Wrong type mapping in java2wsdl for java.math.BigDecimal
Date Wed, 07 Feb 2007 12:12:05 GMT
Wrong type mapping in java2wsdl for java.math.BigDecimal

                 Key: AXIS2-2128
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: Tools
    Affects Versions: 1.1.1
            Reporter: Mirko Zeibig

Java2Wsdl generates 'xs:int' for 'java.math.BigDecimal' instead of 'xs:decimal'. This is wrong
because of:
[Definition:]   integer is - derived-  from decimal by fixing the value of - fractionDigits-
 to be 0and disallowing the trailing decimal point. This results in the standard mathematical
concept of the integer numbers. The - value space-  of integer is the infinite set {...,-2,-1,0,1,2,...}.
The - base type-  of integer is decimal.

It is easy to fix in '' by adding this line of code:
simpleTypetoxsd.put("java.math.BigDecimal", new QName(Java2WSDLConstants.URI_2001_SCHEMA_XSD,
"decimal", "xs"));

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message