[ 
https://issues.apache.org/jira/browse/CXF-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin resolved CXF-4015.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6
                   2.5.2
                   2.4.6
         Assignee: Sergey Beryozkin
    
> wadl2java: xs:integer param is generated as invalid type
> --------------------------------------------------------
>
>                 Key: CXF-4015
>                 URL: https://issues.apache.org/jira/browse/CXF-4015
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, Tooling
>    Affects Versions: 2.5.1
>            Reporter: Stefan Odendahl
>            Assignee: Sergey Beryozkin
>             Fix For: 2.4.6, 2.5.2, 2.6
>
>
> A param of type xs:integer is generated as a Java "integer". This is no valid 
> primitive type, probably you mean "int" or "Integer". But even this is wrong. 
> xs:integer is unbounded and can only be represented by BigInteger.
> xs:int however is a signed 32bit integer, generating it as "int" or "Integer" 
> would be fine.
> Example WADL:
>   <param name="my_number" type="xs:integer" style="query" required="true"/>
> Created Java code:
>   @QueryParam("my_number") integer my_number
>   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to