[jira] [Resolved] (CXF-8307) Invalid class generated if resource contains hyphen

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (CXF-8307) Invalid class generated if resource contains hyphen

jagadeesh (Jira)

     [ https://issues.apache.org/jira/browse/CXF-8307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andriy Redko resolved CXF-8307.
-------------------------------
    Resolution: Fixed

> Invalid class generated if resource contains hyphen
> ---------------------------------------------------
>
>                 Key: CXF-8307
>                 URL: https://issues.apache.org/jira/browse/CXF-8307
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.3.6, 3.2.13
>            Reporter: alberto colombo
>            Assignee: Andriy Redko
>            Priority: Major
>             Fix For: 3.4.0, 3.3.8, 3.2.15
>
>         Attachments: wadl2java-bug.zip
>
>
> I have created a minimal example to reproduce the bug. Given the following WADL:
> {{<?xml version="1.0" encoding="UTF-8"?><application xmlns:soa="http://www.oracle.com/soa/rest" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://xmlns.oracle.com/OSBSvil/BlueBirdProject/PS_REST_SF_AGENDA_MANAGEMENT" xmlns:ns0="http://www.skytv.it/mdw/data" xmlns="http://wadl.dev.java.net/2009/02">}}
> {{ <doc title="PS_REST_SF_AGENDA_MANAGEMENT">RestService</doc>}}
> {{ <resources base="http://server/">}}
> {{ <resource path="/flying-animals">}}
> {{ <method name="GET">}}
> {{ <request/>}}
> {{ <response status="200"/>}}
> {{ </method>}}
> {{ </resource>}}
> {{ </resources>}}
> {{</application>}}
> The wadl2java plugin generates the following class:
> @Path("/flying-animals")
> public interface Flying-animalsResource {
> @GET
>  void get();
> }
> I attach the project (WADL + POM) as a zip file.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)