STEP: Create Dynamic Web Project
STEP: Create JAX-RS Web Service, for example:
Service.java
@Path("/rest")
publicclass Service {
@GET
@Path("/{id}")
public void method(int id) {
}
}
STEP: In editor put the cursor before "int id" in method
STEP: Open Annotation Properties View
STEP: Check javax.ws.rs.PathParam
ASSERT: NPE is not thrown
FAIL: two NPEs are thrown in Error log
STEP: Create Dynamic Web Project
STEP: Create JAX-RS Web Service, for example:
Service.java
@Path( "/ rest " )
public class Service {
@GET
@Path( "/{id}" )
public void method( int id) {
}
}
STEP: In editor put the cursor before "int id" in method
STEP: Open Annotation Properties View
STEP: Check javax.ws.rs.PathParam
ASSERT: NPE is not thrown
FAIL: two NPEs are thrown in Error log