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

NPE when adding PathParam annotation through Annotation Properties view

XMLWordPrintable

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

      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

      Show
      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

      1. JBIDE-11886.patch
        8 kB
      2. log.txt
        4 kB

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

            Created:
            Updated:
            Resolved: