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

Shoud validate when @Path arg at type does not match @PathParam on methods

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1
    • 4.1.0.Final
    • webservices
    • None

      Let's take the following code:

      @Path("/users/{username}")
      public class UserResource {
       
          @GET
          @Produces("text/xml")
          public String getUser(@PathParam("user") String userName) {
              ...
          }
      }
      
      

      Validation should report a problem because of the mismatch between the

      @Path

      value and the

      @PathParam

      value

            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: