Details
-
Enhancement
-
Resolution: Done
-
Major
-
4.2.0.Beta2
-
When fixing problems in a class, all related JAX-RS elements are included in the resources to be validated, which means that related problems are marked as resolved without having to manually trigger a build.
Description
Let's assume user has a class as below:
public class CarFromString { public static Car fromString(String value) { return null; } }
and a JAX-RS resource method as follow:
@POST @Path("{type}/{id}") public Object createCar(@PathParam("id") CarFromString car) { return null; }
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