Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8307

Invalid class generated if resource contains hyphen

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.6, 3.2.13
    • Fix Version/s: 3.4.0, 3.3.8, 3.2.15
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

        1. wadl2java-bug.zip
          8 kB
          alberto colombo

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              albx79 alberto colombo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: