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

Validator: The annotation @PathParam must define the attribute value

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: 4.13.0.Final
    • Fix Version/s: 4.16.0.Final
    • Component/s: webservices
    • Labels:
      None
    • Sprint:
      devex #186 July 2020
    • Story Points:
      5

      Description

      According to https://developer.jboss.org/en/resteasy/blog/2018/05/29/new-blog, I can define a resource with

      public String hello(@PathParam String name) {
            ..
       }
      

      instead of

      public String hello(@PathParam(value="name") String name) {
            ..
       }
      

      when setting the following in pom.xml:

      <maven.compiler.parameters>true</maven.compiler.parameters>
      

      However, jboss tools validator complains about it as a validator error:

      The annotation @PathParam must define the attribute value") 
      

      and compilation fails.

      So I tried to disable some validators according to JbossPath-Params (see attachement).

      However, the error is still shown in my editor by the validator.

        Attachments

          Activity

            People

            Assignee:
            jeffmaury Jeff MAURY
            Reporter:
            nimo22 nimo stephan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: