cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (Commented) (JIRA)" <>
Subject [jira] [Commented] (CXF-4015) wadl2java: xs:integer param is generated as invalid type
Date Wed, 11 Jan 2012 11:55:39 GMT


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:
>             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
> 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:!default.jspa
For more information on JIRA, see:


View raw message