[jbosstools-issues] [JBoss JIRA] (JBIDE-17421) Typo in a validation message (unexpected extra '}' character)
Xavier Coulon (JIRA)
issues at jboss.org
Mon May 26 06:37:56 EDT 2014
Xavier Coulon created JBIDE-17421:
-------------------------------------
Summary: 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: website
Affects Versions: 4.2.0.Beta2
Reporter: Xavier Coulon
Assignee: Xavier Coulon
Priority: Minor
Fix For: 4.2.0.Beta3
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