-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
4.1.0.Final
-
None
Take the 2 following classes:
@Path("/products") public class ProductResourceLocator { @PathParam("productType") private String productType = null; @Path("/{productType}") public Object getProductResourceLocator() { if ("books".equals(productType)) { return new BookResource(); } if ("games".equals(productType)) { return new GameResource(); } throw new WebApplicationException(Status.NOT_FOUND); } }
and
public class BookResource { @GET @Path("/{id}") @Produces({ "application/xml", "application/json" }) public Book getProduct(@PathParam("id") Integer id) { return null; } }
The combination of those 2 classes should produce the following endpoint:
/<rest_app>/products/{productType:String};bar={String}/{id:int}
but sometimes, this endpoint is missing and running a 'Project>Clean' does not solve the problem.
- is related to
-
JBIDE-15599 Changes on a subresource locator fields are not propagated to the JAX-RS Explorer
- Closed