-
Bug
-
Resolution: Unresolved
-
Major
-
4.2.1.Final
-
-
I have an interface with annotated JAX-RS methods (HTTP method type, path, consumes...) CarResourceInterface and implementation of this interface CarResourceImpl. Inheriting all metadata related to one method should affect processing of this JAX-RS web services - new values from Impl should be used and probably it would be good to show it also in JAX-RS Web Services node in Project Explorer view. Currently there are shown only interface JAX-RS web services and any change in Impl is ignored in this view.
There are chunk of codes for interface and implementation. At first I was having only interface and it's web service has been shown in JAX-RS Web Services. Then I have added implementation and overrode interface but still in JAX-RS Web Services the interface is shown.
@Path("car") public interface CarResource { @GET @Path("/{id:[0-9][0-9]*}") @Produces({ "application/xml", "application/json" }) public Response findById(@PathParam("id") final Long id); }
public class CarResourceImpl implements CarResource { @GET @Path("/{carid:a[0-9]*}") @Produces({ "text", "application/json" }) public Response findById(@PathParam("carid") final Long id) { //TODO: retrieve the car return null; } }
- is related to
-
JBIDE-19014 JAX-RS Web Services in Project Explorer does not show properly inherited metadata (abstract class)
- Open