]
Radoslav Rábara closed JBIDE-17368.
-----------------------------------
Verified with JBDS 8.0.0 Beta3-v20140706-0939-B172
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
Assignee: Xavier Coulon
Labels: new_and_noteworthy
Fix For: 4.2.0.Beta3
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