[jbosstools-issues] [JBoss JIRA] (JBIDE-11070) JAX-RS validation problem marked as Error instead of Warning

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Mon Feb 27 15:51:36 EST 2012


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

Xavier Coulon updated JBIDE-11070:
----------------------------------

    Attachment: JBIDE-11070.patch


Patch to apply
                
> JAX-RS validation problem marked as Error instead of Warning
> ------------------------------------------------------------
>
>                 Key: JBIDE-11070
>                 URL: https://issues.jboss.org/browse/JBIDE-11070
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 3.3.0.Beta1
>         Environment: Win7 64bit
> Eclipse 3.7.2 64bit
>   JBoss JAX-RS Tools 1.2.2.v20120217-1720-H797-Beta1 org.jboss.tools.ws.jaxrs.feature.feature.group JBoss by Red Hat
>   JBoss Maven Integration 1.3.0.v20120215-1811-H563-Beta1 org.jboss.tools.maven.feature.feature.group JBoss by Red Hat
>   JBoss Maven JAX-RS Configurator 1.3.0.v20120215-1811-H563-Beta1 org.jboss.tools.maven.jaxrs.feature.feature.group JBoss by Red Hat
>   JBoss WebServices Tools 1.2.2.v20120217-1720-H797-Beta1 org.jboss.tools.ws.feature.feature.group JBoss by Red Hat 
>            Reporter: Ron Ratovsky
>            Assignee: Xavier Coulon
>            Priority: Blocker
>             Fix For: 3.3.0.CR1
>
>         Attachments: JBIDE-11070.patch
>
>
> 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"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list