Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-16264

@PathParam with hyphen in value shows as JAX-RS error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.1.2.CR1
    • 4.1.1.CR1
    • webservices
    • None

    Description

      if I have a method like:
      @GET
      @Path("/rule/

      {rule-file-name}

      ")
      public byte[] getRuleSet(@PathParam("rule-file-name") String ruleSetName)

      I get the error:
      @PathParam value 'rule-file-name' does not match any @Path annotation template parameters of the java method and the enclosing java type.

      If I remove the hyphens from "rule-file-name" the error goes away.
      However the hyphen should be allowed.

      Attachments

        Issue Links

          Activity

            People

              xcoulon@redhat.com Xavier Coulon
              jimbo07_jira Jim Boettcher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: