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

@PathParam validation broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.M5
    • None
    • webservices
    • None
    • Release Notes

    Description

      Having a class:

      @Path("/foo/

      {id}

      ")
      public class Foo {

      @Path("/bar")
      public void bar(@PathParam("id") String id)

      { // noop }

      }

      the following error is recognized by JBoss Tools:
      "@PathParam annotation value 'id' does not match any parameter of the same method or type @Path annotation(s)."

      Although the "id" parameter matches the id path parameter defined within class-level @Path annotation.

      Besides, to implement this correctly, it is also important to consider that the JAX-RS resource may actually be a sub-resource. Thus, a path parameter can be defined on the resource that delegates to Foo and not on Foo itself.

      Attachments

        Activity

          People

            xcoulon@redhat.com Xavier Coulon
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: