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

Invalid class generated if resource contains hyphen

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.6, 3.2.13
    • 3.4.0, 3.3.8
    • JAX-RS
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: