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

JAX-RS Web Services in Project Explorer does not show properly inherited metadata (interface)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.2.1.Final
    • webservices
    • -

      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.

      CarResource.java
      @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);
      }
      
      CarResourceImpl.java
      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;
      	}
      }
      

            Unassigned Unassigned
            mlabuda_jira Marián Labuda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: