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

Incorrect Interface Method Name Generation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.18
    • Fix Version/s: 3.1.5, 3.0.8, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              bsavanur Bharat Savanur
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: