[
https://issues.apache.org/jira/browse/CXF-6676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15008173#comment-15008173
]
Bharat Savanur commented on CXF-6676:
--------------------------------------
Thank you for the quick feedback. Sure Please find the small WADL below. The
below resource path(get-desk-roles) will cause interface method to fail due to
incorrect name formation in Resource.java interface.
<application xmlns="http://wadl.dev.java.net/2009/02"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<grammars/>
<resources base="http://localhost:8080/service/sv/access">
<resource path="/">
<resource path="get-desk-roles">
<param name="name" style="template" type="xs:string"/>
<method name="GET">
<request/>
<response>
<representation mediaType="application/json"/>
<representation mediaType="application/html"/>
</response>
</method>
</resource>
</resource>
</resources>
</application>
Thanks and Regards,
Bharat Savanur
> Incorrect Interface Method Name Generation
> ------------------------------------------
>
> Key: CXF-6676
> URL: https://issues.apache.org/jira/browse/CXF-6676
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.7.18
> Reporter: Bharat Savanur
> Assignee: Sergey Beryozkin
> Fix For: 3.1.5, 3.0.8, 3.2.0
>
>
> The issue is with interface name that gets generated if there is a special
> character in the Resource Path. For ex:
> Service Impln defn:
> @Post
> @Path("get-add")
> public Result add(Int a){
> }
> When we generate client interface using WADL (which is generated from the
> above service definition) , then interface name has the following structure:
> @Path("get-add")
> public Result postGet-add(Int a);
> We are using WADLTOJAVA for client interface generation.
> The above method name violates JAVA METHOD NAMING conventions.
> which results in compilation errors.
> Can you please let me know if there is a solution currently available for
> this.
> Thanks and Regards,
> Bharat Savanur
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)