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

Work with "Annotation Properties" view breaks JAX-RS explorer

    Details

    • Steps to Reproduce:
      Hide

      STEP: Create Dynamic Web Project with JAX-RS support
      STEP: Create JAX-RS Web Service, for example:

      Service.java
      
      @Path("/rest")
      public class Service {
      
      	@GET
      	public void method1() {
      		
      	}
      	
      	@PUT
      	public void method2() {
      		
      	}
      	
      	@POST
      	public void method3() {
      		
      	}
      	
      	@DELETE
      	public void method4() {
      		
      	}
      	
      }
      
      

      STEP: In editor click on @GET annotation
      STEP: Open Annotation Properties View - javax.ws.rs.GET checkbox should be checked
      STEP: Uncheck javax.ws.rs.GET annotation in Annotation Properties View
      ASSERT: JAX-RS REST Web Service explorer can be expanded
      FAIL: JAX-RS REST Web Service explorer cannot be expanded
      STEP: Check javax.ws.rs.GET annotation in Annotation Properties View again
      STEP: Expand JAX-RS REST Web Service explorer
      ASSERT: Explorer contains all 4 REST methods
      FAIL: Explorer contains only GET method

      note: to be able to reproduce second issue, you have to doubleclick javax.ws.rs.GET quickly (less than 1 second between clicks)

      Show
      STEP: Create Dynamic Web Project with JAX-RS support STEP: Create JAX-RS Web Service, for example: Service.java @Path( "/ rest " ) public class Service { @GET public void method1() { } @PUT public void method2() { } @POST public void method3() { } @DELETE public void method4() { } } STEP: In editor click on @GET annotation STEP: Open Annotation Properties View - javax.ws.rs.GET checkbox should be checked STEP: Uncheck javax.ws.rs.GET annotation in Annotation Properties View ASSERT: JAX-RS REST Web Service explorer can be expanded FAIL: JAX-RS REST Web Service explorer cannot be expanded STEP: Check javax.ws.rs.GET annotation in Annotation Properties View again STEP: Expand JAX-RS REST Web Service explorer ASSERT: Explorer contains all 4 REST methods FAIL: Explorer contains only GET method note: to be able to reproduce second issue, you have to doubleclick javax.ws.rs.GET quickly (less than 1 second between clicks)
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Clean the project

      Show
      Clean the project

      Description

      After some random clicking on JAX-RS annotation in Annotation Properties view, JAX-RS breaks.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                xcoulon Xavier Coulon
                Reporter:
                jjankovi Jaroslav Jankovič
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: