• Hide

      STEP: Create dynamic web project with JAX-RS support
      STEP: Create a REST web service:

      public class A {
      
          @GET
          @Path("/{id}")
          public void method(@PathParam("myid") int id) {
      		
          }
      	
      }
      

      ASSERT: there is validation error ("myid" should be "id" )
      FAIL: there is no validation error at all

      Error is thrown when saving the file:

      org.jboss.tools.common.validation.JBTValidationException: [Ljava.lang.Object; cannot be cast to [Lorg.eclipse.core.resources.IResource;
      	at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:101)
      	at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.eclipse.core.resources.IResource;
      	at org.jboss.tools.ws.jaxrs.core.internal.metamodel.validation.JaxrsMetamodelValidator.validate(JaxrsMetamodelValidator.java:106)
      	at org.jboss.tools.common.validation.ValidatorManager.validate(ValidatorManager.java:117)
      	at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:81)
      	... 2 more
      
      
      Show
      STEP: Create dynamic web project with JAX-RS support STEP: Create a REST web service: public class A { @GET @Path( "/{id}" ) public void method(@PathParam( "myid" ) int id) { } } ASSERT: there is validation error ("myid" should be "id" ) FAIL: there is no validation error at all Error is thrown when saving the file: org.jboss.tools.common.validation.JBTValidationException: [Ljava.lang. Object ; cannot be cast to [Lorg.eclipse.core.resources.IResource; at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:101) at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.ClassCastException: [Ljava.lang. Object ; cannot be cast to [Lorg.eclipse.core.resources.IResource; at org.jboss.tools.ws.jaxrs.core.internal.metamodel.validation.JaxrsMetamodelValidator.validate(JaxrsMetamodelValidator.java:106) at org.jboss.tools.common.validation.ValidatorManager.validate(ValidatorManager.java:117) at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:81) ... 2 more

          [JBIDE-12729] JAX-RS validation doesn't work at all

          Verified in JBT 4.0.0.Alpha2-v20120928-0052-B17

          Jaroslav Jankovič (Inactive) added a comment - Verified in JBT 4.0.0.Alpha2-v20120928-0052-B17

          Patch applied on branch and trunk

          Xavier Coulon added a comment - Patch applied on branch and trunk

          here you are

          Rob Stryker (Inactive) added a comment - here you are

          +1 review approved

          Rob Stryker (Inactive) added a comment - +1 review approved

          Please, please, approve my patch

          Xavier Coulon added a comment - Please, please, approve my patch

          Properly converting the List of IFile into an Array of IFile and changing the argument type in the completeValidationSet() method to match the IFile type.

          Xavier Coulon added a comment - Properly converting the List of IFile into an Array of IFile and changing the argument type in the completeValidationSet() method to match the IFile type.

            xcoulon@redhat.com Xavier Coulon
            jjankovi Jaroslav Jankovič (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: