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

BeanParam: unbound @PathParam error is present after the problem had been fixed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.2.0.CR1
    • 4.2.0.Beta3
    • webservices
    • None
    • Hide

      STEP: Create Dynamic Web Project with JAX-RS Support
      STEP: Create RestService and BeanClass

      @Path("/rest")
      public class RestService {
      	@POST
      	@Path("{id}")
      	public void post(@BeanParam BeanClass bean) {
      		
      	}	
      }
      
      public class BeanClass {
      	@PathParam("id")
      	private Integer id;
      }
      

      STEP: Remove @Path("{id}")
      ASSERT: There are 2 errors in Problems view (one for each file)

      @PathParam value 'id' does not match any @Path annotation template parameters of the java method 'post' and its enclosing java type 'org.rest.test.RestService'.
      

      STEP: Undo removal
      ASSERT: There is no error
      FAIL: 1 error is still there (resource: BeanClass.java)

      Show
      STEP: Create Dynamic Web Project with JAX-RS Support STEP: Create RestService and BeanClass @Path( "/ rest " ) public class RestService { @POST @Path( "{id}" ) public void post(@BeanParam BeanClass bean) { } } public class BeanClass { @PathParam( "id" ) private Integer id; } STEP: Remove @Path("{id}") ASSERT: There are 2 errors in Problems view (one for each file) @PathParam value 'id' does not match any @Path annotation template parameters of the java method 'post' and its enclosing java type 'org. rest .test.RestService' . STEP: Undo removal ASSERT: There is no error FAIL: 1 error is still there (resource: BeanClass.java)

    Attachments

      Activity

        People

          xcoulon@redhat.com Xavier Coulon
          rrabara Radoslav RĂ¡bara (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: