cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pat Lynch (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-6491) wadl2java produces incorrect Comsumes annotation for multiple representations on POST methods
Date Wed, 08 Jul 2015 19:56:04 GMT

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

Pat Lynch edited comment on CXF-6491 at 7/8/15 7:55 PM:
--------------------------------------------------------

The attached files demonstrate the issue.  The tool was run with the following configuration:
{code}
            <plugin>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-wadl2java-plugin</artifactId>
               <version>3.0.2</version>
               <configuration>
                  <sourceRoot>${project.build.directory}/wadl-source</sourceRoot>
                  <wadlOptions>
                     <wadlOption>
                        <impl>false</impl>
                        <catalog>${internal.catalog.path}</catalog>
                        <packagename>${client.package}</packagename>
                        <extraargs>
                           <extraarg>-verbose</extraarg>
                           <extraarg>-interface</extraarg>
                           <extraarg>-inheritResourceParams</extraarg>
                           <extraarg>-supportMultipleXmlReps</extraarg>
                        </extraargs>
                     </wadlOption>
                  </wadlOptions>
               </configuration>
            </plugin>
{code}


was (Author: colorado-lynchdp):
These files demonstrate the issue.  The tool was run with the following configuration:
{code}
            <plugin>
               <groupId>org.apache.cxf</groupId>
               <artifactId>cxf-wadl2java-plugin</artifactId>
               <version>3.0.2</version>
               <configuration>
                  <sourceRoot>${project.build.directory}/wadl-source</sourceRoot>
                  <wadlOptions>
                     <wadlOption>
                        <impl>false</impl>
                        <catalog>${internal.catalog.path}</catalog>
                        <packagename>${client.package}</packagename>
                        <extraargs>
                           <extraarg>-verbose</extraarg>
                           <extraarg>-interface</extraarg>
                           <extraarg>-inheritResourceParams</extraarg>
                           <extraarg>-supportMultipleXmlReps</extraarg>
                        </extraargs>
                     </wadlOption>
                  </wadlOptions>
               </configuration>
            </plugin>
{code}

> wadl2java produces incorrect Comsumes annotation for multiple representations on POST
methods
> ---------------------------------------------------------------------------------------------
>
>                 Key: CXF-6491
>                 URL: https://issues.apache.org/jira/browse/CXF-6491
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 3.0.2, 3.0.5, 3.1.1
>         Environment: 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)
>            Reporter: Pat Lynch
>         Attachments: PlcmHohoResource.java, plcm-hoho-v2.xsd, plcm-hoho-v3.xsd, plcm-hoho.wadl,
plcm-hoho.xsd
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message