[jbosstools-issues] [JBoss JIRA] (JBIDE-16264) @PathParam with hyphen in value shows as JAX-RS error

Xavier Coulon (JIRA) issues at jboss.org
Fri Jan 31 10:07:30 EST 2014


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

Xavier Coulon commented on JBIDE-16264:
---------------------------------------

Jim,

Thanks for reporting this issue and sorry if I missed it before.
I added rules to allow for hyphen, underscore and dot characters in the PathParam annotation value and fixed the validator message (it was not the appropriate one).

Don't hesitate to report any other issue/feature request you have (I'll make sure I won't miss them next time)
                
> @PathParam with hyphen in value shows as JAX-RS error
> -----------------------------------------------------
>
>                 Key: JBIDE-16264
>                 URL: https://issues.jboss.org/browse/JBIDE-16264
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.1.1.CR1
>            Reporter: Jim Boettcher
>            Assignee: Fred Bricon
>            Priority: Minor
>             Fix For: 4.2.0.Alpha2
>
>
> if I have a method like:
> @GET
> @Path("/rule/{rule-file-name}")
> public byte[] getRuleSet(@PathParam("rule-file-name") String ruleSetName)
> I get the error:
> @PathParam value 'rule-file-name' does not match any @Path annotation template parameters of the java method and the enclosing java type.
> If I remove the hyphens from "rule-file-name" the error goes away.
> However the hyphen should be allowed.

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