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

    • Enhancement
    • Resolution: Won't Do
    • Major
    • 4.16.0.Final
    • 4.13.0.Final
    • webservices
    • None
    • devex #186 July 2020
    • 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

            jmaury@redhat.com Jeff MAURY
            nimo22 nimo stephan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: