[jbosstools-issues] [JBoss JIRA] (JBIDE-17368) Revalidate JAX-RS Resources when type used as a method parameter changed
Xavier Coulon (JIRA)
issues at jboss.org
Thu May 22 15:52:56 EDT 2014
Xavier Coulon created JBIDE-17368:
-------------------------------------
Summary: Revalidate JAX-RS Resources when type used as a method parameter changed
Key: JBIDE-17368
URL: https://issues.jboss.org/browse/JBIDE-17368
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: webservices
Affects Versions: 4.2.0.Beta2
Reporter: Xavier Coulon
Let's assume user has a class as below:
{code}
public class CarFromString {
public static Car fromString(String value) {
return null;
}
}
{code}
and a JAX-RS resource method as follow:
{code}
@POST
@Path("{type}/{id}")
public Object createCar(@PathParam("id") CarFromString car) {
return null;
}
{code}
The JAX-RS validator should report a problem because the 'CarFromString' class is not a valid type for the JAX-RS method (the {{fromString}} method should return a {{CarFromString}}, not a {{Car}}).
Now, if the user fixes that problem in the {{CarFromString}} class, the JAX-RS Resource is not re-validated.
Workaround: clean project or change some content in the JAX-RS resource to trigger a build+validation
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the jbosstools-issues
mailing list