[jbosstools-issues] [JBoss JIRA] (JBIDE-17421) Typo in a validation message (unexpected extra '}' character)
Marián Labuda (JIRA)
issues at jboss.org
Tue Jun 10 03:23:15 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-17421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marián Labuda closed JBIDE-17421.
---------------------------------
Verified in JBDS 8.0.0.Beta2b build 121.
> Typo in a validation message (unexpected extra '}' character)
> -------------------------------------------------------------
>
> Key: JBIDE-17421
> URL: https://issues.jboss.org/browse/JBIDE-17421
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: webservices
> Affects Versions: 4.2.0.Beta2
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Priority: Minor
> Labels: respin-a
> Fix For: 4.2.0.Beta2
>
>
> Having the following code:
> {code}
> @Path("/endpoint")
> public class MyResource {
> @GET()
> @Path("/{id1}/{id2}")
> @Produces(MediaType.TEXT_PLAIN)
> public String get(@PathParam MyPathParams pathParams) {
> return ... ;
> }
> }
> {code}
> with
> {code}
> public class MyPathParams {
>
> @PathParam("id1")
> private String id1;
>
> private String id2;
> public String getId1() {
> return id1;
> }
> public void setId1(String id1) {
> this.id1 = id1;
> }
> public String getId2() {
> return id2;
> }
> @PathParam("id2")
> public void setId2(String id2) {
> this.id2 = id2;
> }
> }
> {code}
> Causes the following error message:
> {quote}
> The type 'org.javaee7.jaxrs.beanparam.MyPathParams}' is not valid for this parameter. See JAX-RS 2.0 Specification (section 3.2) for more information.
> The message ends with an unexpected '}' character.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the jbosstools-issues
mailing list