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

wadl2java produces incorrect Consumes annotation for multiple representations on POST methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2, 3.0.5, 3.1.1
    • 3.0.6, 3.1.2
    • Tooling
    • None
    • CentOS 6.6, Java
      java version "1.7.0_71"
      OpenJDK Runtime Environment (rhel-2.5.3.2.el6_6-x86_64 u71-b14)
      OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

    • Unknown

    Description

      The wadl2java tool, with the supportMultipleXmlReps option, generates the wrong @Consumes annotation values for each of the POST methods that have multiple representations. The annotation for all of the methods contains all of the media types instead of the single media type that is appropriate for the specific method.

      I've tested the versions listed in the affected versions field, but it likely applies to other versions as well.

      Attachments

        1. plcm-hoho.wadl
          2 kB
          Pat Lynch
        2. plcm-hoho.xsd
          2 kB
          Pat Lynch
        3. PlcmHohoResource.java
          1 kB
          Pat Lynch
        4. plcm-hoho-v2.xsd
          2 kB
          Pat Lynch
        5. plcm-hoho-v3.xsd
          2 kB
          Pat Lynch

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            colorado-lynchdp Pat Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: