[
https://issues.apache.org/jira/browse/CXF-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184005#comment-13184005
]
Sergey Beryozkin commented on CXF-4015:
---------------------------------------
Hi, for the moment it will probably make sense to map
xsd:integer to "long" given that xsd:long itself is a restriction of
xsd:integer.
FYI, required="true" will lead to 'long' but dropping this flag will lead to
Long.
I also added a mapping for xsd:decimal to java.math.BigInteger
> 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