Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4015

wadl2java: xs:integer param is generated as invalid type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.1
    • 2.4.6, 2.5.2, 2.6
    • JAX-RS, Tooling
    • None
    • Unknown

    Description

      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

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            odendahl Stefan Odendahl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: