[ 
https://issues.apache.org/jira/browse/CXF-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183157#comment-13183157
 ] 

Stefan Odendahl commented on CXF-4015:
--------------------------------------

This could be simply that integer is not supported. For other types that are 
not defined, the outcome is similar. E.g. a type "foo:bar" is generated as 
"bar", if the prefix "foo" is unknown or foo doesn't contain a definition for 
"bar".
                
> 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
>
> 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