[jira] [Created] (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] [Created] (CXF-8307) Invalid class generated if resource contains hyphen

jagadeesh (Jira)
alberto colombo created CXF-8307:

             Summary: 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
            Reporter: alberto colombo
         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>}}

The wadl2java plugin generates the following class:

public interface Flying-animalsResource {

 void get();


I attach the project (WADL + POM) as a zip file.

This message was sent by Atlassian Jira