[jbosstools-issues] [JBoss JIRA] (JBIDE-12486) Improve message labels when JAX-RS PathParam annotation value does not match Path template parameters

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Wed Oct 10 07:05:03 EDT 2012


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

Xavier Coulon commented on JBIDE-12486:
---------------------------------------

Jaroslav,

Here's an example of *invalid* code that should trigger the message you want:

{code}
	// invalid "{param2}" value (because of "{" and "}" chars)
	// unbound path template parameter "param2" 
	@PUT
	@Path("{param2}") 
	public Response update1(@Context HttpServletRequest requestContext,
			String bar, @PathParam("param1") String param1, @PathParam("{param2}") String param2) throws Exception {
		return null;
	}
{code}
                
> Improve message labels when JAX-RS PathParam annotation value does not match Path template parameters
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-12486
>                 URL: https://issues.jboss.org/browse/JBIDE-12486
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Webservices
>    Affects Versions: 3.3.0.Final
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>              Labels: new_and_noteworthy
>             Fix For: 4.0.0.Alpha1
>
>
> Improve the message and distinguish cases where:
> - the @PathParam value contains surrounding "{" and "}" characters
> - the @PathParam specifies a value that does not match any of the @Path template parameters
> - the @Path specifies a template parameters that does not match any of the @PathParam values

--
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