[jbosstools-issues] [JBoss JIRA] (JBIDE-12744) Wrong location for problem marker on JAX-RS Resource Method

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Mon Nov 12 09:29:18 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-12744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733405#comment-12733405 ] 

Xavier Coulon commented on JBIDE-12744:
---------------------------------------

Jaroslav,

With the following code:

{code}
@Path("/rest/{param}")
public class RestService {

    
        @GET 
	@Path("/user/{id}/{format:(/format/[^/]+?)?}/{encoding:(/encoding/[^/]+?)?}")
	public Response getContent(@PathParam("ide") int id,
				  @PathParam("format") String format, 
				  @PathParam("encoding") String encoding, 
				  @QueryParam("start") int start) {
		return null; 
	}  
	
}
{code}

you should have warnings under {id} in the @Path method annotation value and under {param} in the @Path type annotation value. Before, the marker was under the method name ('getContent' in the example above) 
                
> Wrong location for problem marker on JAX-RS Resource Method
> -----------------------------------------------------------
>
>                 Key: JBIDE-12744
>                 URL: https://issues.jboss.org/browse/JBIDE-12744
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 4.0.0.Alpha2
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>             Fix For: 4.0.0.Beta2
>
>
> Problem marker is located at the java method name instead of the @Path annotation.
> We should split the problem markers into 2 separate ones: @Path annotation on a Resource Type and @Path annotation on a Resource Method, with proper message to indicate the method name when the @Path annotation is on the type.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list