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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 4.2.0.Alpha2
    • 4.1.1.CR1
    • webservices
    • None

      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.

            xcoulon@redhat.com Xavier Coulon
            xcoulon@redhat.com Xavier Coulon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: