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

Changes on a subresource locator fields are not propagated to the JAX-RS Explorer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1
    • 4.1.0.Final
    • webservices
    • None

      Take the following classes:

      @Path("/products")
      public class ProductResourceLocator {
      
      	@QueryParam("foo")
      	private String foo;
      
              @Path("/{productType}")
      	public Object getProductResourceLocator() {
      		return new BookResource(); 
      	}
      }
      

      and

      @Produces({ MediaType.APPLICATION_XML, "application/json" })
      public class BookResource {
      
      	@GET
      	@Path("/{id}")
      	@Produces({ "application/xml", "application/json" })
      	public Book getProduct(@PathParam("id") Integer id) {
      		return null;
      	}
      }
      

      and modify the @QueryParam value of the "foo" field.
      ASSERT: the changes appear in the Project Explorer
      FAIL: the old @QueryParam annotation value is still used
      WORKAROUND: Refresh the JAX-RS Web Services node.

            xcoulon@redhat.com Xavier Coulon
            xcoulon@redhat.com Xavier Coulon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: