Hello

I'm having trouble with CXF's JAX-RS implementation. The service is
struggling to match the correct method defined on an interface. Please
consider:

@Path("/update")
public interface MyService {

  @PUT
  @Path("/{id}")
  public void updateFruit(@QueryParam("id") String id, Banana banana);
  
  @PUT
  @Path("/{id}")
  public void updateAnimal(@QueryParam("id") String id, Dog dog);
}

where both Banana and Dog extend a common object. When making a call to
updateFruit from a jax-rs client, it calls updateAnimal. I've traced the
problem into JAXRSUtils and I'm wondering if there's any solution, or do
these methods need unique paths?

Thanks


John
-- 
John Baker

Reply via email to