cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-6759) WADL2JAVA Tools Generated Source has Duplicate Method Name
Date Thu, 28 Jan 2016 21:25:39 GMT

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

Sergey Beryozkin edited comment on CXF-6759 at 1/28/16 9:25 PM:
----------------------------------------------------------------

Please do the patch asap if you'd like to make it into 3.1.5, thanks


was (Author: sergey_beryozkin):
Please do the patch now shortly if you'd like to make it into 3.1.5, thanks

> WADL2JAVA Tools Generated Source has Duplicate Method Name
> ----------------------------------------------------------
>
>                 Key: CXF-6759
>                 URL: https://issues.apache.org/jira/browse/CXF-6759
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, Tooling
>    Affects Versions: 3.0.7, 3.1.4
>         Environment: Windows
>            Reporter: Neal Hu
>             Fix For: 3.1.5, 3.0.8, 3.2.0
>
>
> Generate source using below wadl file contains duplicate method name:
> command: wadl2java.bat -p cxf -d . -impl hello.wadl
> <application xmlns="http://wadl.dev.java.net/2009/02" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <grammars/>
> <resources base="http://localhost:9088/Pojo/hello/">
> <resource path="/BasicResource">
> <resource path="/echo">
> <method name="GET">
> <response>
> <representation mediaType="application/json">
> <param name="result" style="plain" type="xs:string"/>
> </representation>
> </response>
> </method>
> <method name="GET">
> <response>
> <representation mediaType="text/plain">
> <param name="result" style="plain" type="xs:string"/>
> </representation>
> </response>
> </method>
> </resource>
> </resource>
> </resources>
> </application>
> /**
>  * Created by Apache CXF WadlToJava code generator
> **/
> package cxf;
> import javax.ws.rs.GET;
> import javax.ws.rs.Path;
> import javax.ws.rs.Produces;
> @Path("/BasicResource")
> public class BasicResourceResource {
>     @GET
>     @Produces("application/json")
>     @Path("/echo")
>     public String getEcho() {
>         //TODO: implement
>         return null;
>     }
>     @GET
>     @Produces("text/plain")
>     @Path("/echo")
>     public String getEcho() {
>         //TODO: implement
>         return null;
>     }
> }



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

Mime
View raw message