Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17368

Revalidate JAX-RS Resources when type used as a method parameter changed

    XMLWordPrintable

    Details

    • Release Notes Text:
      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                xcoulon Xavier Coulon
                Reporter:
                xcoulon Xavier Coulon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: