[jbosstools-issues] [JBoss JIRA] (JBIDE-15522) Shoud validate when @Path arg at type does not match @PathParam on methods

Radoslav Rábara (JIRA) issues at jboss.org
Wed Sep 3 07:32:01 EDT 2014


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

Radoslav Rábara closed JBIDE-15522.
-----------------------------------


Verified with JBDS 8.0.0 CR1-v20140831-0335-B201

> Shoud validate when @Path arg at type does not match @PathParam on methods 
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-15522
>                 URL: https://issues.jboss.org/browse/JBIDE-15522
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: webservices
>    Affects Versions: 4.1.0.Final
>            Reporter: Xavier Coulon
>            Assignee: Xavier Coulon
>             Fix For: 4.2.0.CR1
>
>
> Let's take the following code:
> {code}
> @Path("/users/{username}")
> public class UserResource {
>  
>     @GET
>     @Produces("text/xml")
>     public String getUser(@PathParam("user") String userName) {
>         ...
>     }
> }
> {code}
> Validation should report a problem because of the mismatch between the {noformat}@Path{noformat} value and the {noformat}@PathParam{noformat} value



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)



More information about the jbosstools-issues mailing list