[jbosstools-issues] [JBoss JIRA] (JBIDE-26970) Validator: The annotation @PathParam must define the attribute value

nimo stephan (Jira) issues at jboss.org
Wed Nov 27 09:18:00 EST 2019


     [ https://issues.jboss.org/browse/JBIDE-26970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

{code:java}
public String hello(@PathParam String name) {
      ..
 }
{code}


instead of


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


when setting the following in pom.xml: 

{code:java}
<maven.compiler.parameters>true</maven.compiler.parameters>
{code}

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


{code:java}
The annotation @PathParam must define the attribute value") 
{code}


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. 

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

{code:java}
public String hello(@PathParam String name) {
      ..
 }
{code}


instead of


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


when setting the following in pom.xml: 

{code:java}
<maven.compiler.parameters>true</maven.compiler.parameters>
{code}

However, jboss tools validator complains about it as an 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. 



> Validator: The annotation @PathParam must define the attribute value
> --------------------------------------------------------------------
>
>                 Key: JBIDE-26970
>                 URL: https://issues.jboss.org/browse/JBIDE-26970
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>            Reporter: nimo stephan
>            Priority: Major
>         Attachments: jax-rs-validator.png
>
>
> According to https://developer.jboss.org/en/resteasy/blog/2018/05/29/new-blog, I can define a resource with
> {code:java}
> public String hello(@PathParam String name) {
>       ..
>  }
> {code}
> instead of
> {code:java}
> public String hello(@PathParam(value="name") String name) {
>       ..
>  }
> {code}
> when setting the following in pom.xml: 
> {code:java}
> <maven.compiler.parameters>true</maven.compiler.parameters>
> {code}
> However, jboss tools validator complains about it as an validator error:
> {code:java}
> The annotation @PathParam must define the attribute value") 
> {code}
> 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. 



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jbosstools-issues mailing list