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

JAX-RS validation problem marked as Error instead of Warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.3.0.Beta1
    • 3.3.0.Beta1
    • webservices
    • None

      Marked as Blocker per Max Andersen's request in the IRC channel.

      On the following code declaration (and similar):
      @DELETE
      @Path(/

      {id})
      public void removeId(@Context HttpServletRequest requestContext) {

      There's an error marker such as:
      Description Resource Path Location Type
      Missing @PathParam value: expected id Class.java ‪/path/to/class Unknown Validation Message

      I imagine this is caused since the method signature doesn't include a '@PathParam("id") String id' declaration, even though there's a {id}

      parameter in the path. This is not an actual error, but should probably produce a warning.
      According to Max Andersen:
      Feb 26 10:02:24 <maxandersen1> ron: I agree - that should not be an error. spec says "you may use @PathParam" not "you must"

        1. JBIDE-11070.patch
          2 kB
        2. JBIDE-11070b.patch
          1 kB
        3. JBIDE-11070c.patch
          18 kB

            xcoulon@redhat.com Xavier Coulon
            webron_jira Ron Ratovsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: