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

BeanParam: removal of @QueryParam/@MatrixParam annotation from field in Bean class is not reflected in JAX-RS Explorer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.2.0.Beta3
    • 4.2.0.Beta3
    • webservices
    • None
    • Hide

      STEP: Create Dynamic Web Project with JAX-RS Support
      STEP: Create RestService and BeanClass with field annotated with @QueryParam/@MatrixParam

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

      STEP: Remove the @QueryParam from BeanClass
      ASSERT: JAX-RS Explorer updated endpoint URI Path Template
      FAIL: There is no update (URI is still /rest?author={String} )

      Show
      STEP: Create Dynamic Web Project with JAX-RS Support STEP: Create RestService and BeanClass with field annotated with @QueryParam/@MatrixParam @Path( "/ rest " ) public class RestService { @POST @Path( "{id}" ) public void post(@BeanParam BeanClass bean) { } } public class BeanClass { @QueryParam( "author" ) private String author; } STEP: Remove the @QueryParam from BeanClass ASSERT: JAX-RS Explorer updated endpoint URI Path Template FAIL: There is no update (URI is still /rest?author={String} )

          rrabara Radoslav Rábara (Inactive)
          rrabara Radoslav Rábara (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated:
            Resolved: