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 "Mirko Zeibig (JIRA)" <ji...@apache.org> on 2007/02/07 13:12:05 UTC

[jira] Created: (AXIS2-2128) Wrong type mapping in java2wsdl for java.math.BigDecimal

Wrong type mapping in java2wsdl for java.math.BigDecimal
--------------------------------------------------------

                 Key: AXIS2-2128
                 URL: https://issues.apache.org/jira/browse/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 'org.apache.ws.java2wsdl.utils.TypeTable' 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-2128) Wrong type mapping in java2wsdl for java.math.BigDecimal

Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Wiedmann reassigned AXIS2-2128:
--------------------------------------

    Assignee: Jochen Wiedmann

> Wrong type mapping in java2wsdl for java.math.BigDecimal
> --------------------------------------------------------
>
>                 Key: AXIS2-2128
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2128
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1.1
>            Reporter: Mirko Zeibig
>         Assigned To: Jochen Wiedmann
>
> 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 'org.apache.ws.java2wsdl.utils.TypeTable' 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-2128) Wrong type mapping in java2wsdl for java.math.BigDecimal

Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jochen Wiedmann resolved AXIS2-2128.
------------------------------------

    Resolution: Fixed

Already fixed in the trunk with revision 529296.


> Wrong type mapping in java2wsdl for java.math.BigDecimal
> --------------------------------------------------------
>
>                 Key: AXIS2-2128
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2128
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.1.1
>            Reporter: Mirko Zeibig
>         Assigned To: Jochen Wiedmann
>
> 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 'org.apache.ws.java2wsdl.utils.TypeTable' 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org