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)
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)