[jbosstools-issues] [JBoss JIRA] (JBIDE-18954) JAX-RS Web Services in Project Explorer does not show properly inherited metadata (interface)

Jeff MAURY (JIRA) issues at jboss.org
Wed Apr 18 12:13:11 EDT 2018


     [ https://issues.jboss.org/browse/JBIDE-18954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff MAURY updated JBIDE-18954:
-------------------------------
    Fix Version/s: 4.6.x
                       (was: 4.5.x)


> JAX-RS Web Services in Project Explorer does not show properly inherited metadata (interface)
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-18954
>                 URL: https://issues.jboss.org/browse/JBIDE-18954
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: webservices
>    Affects Versions: 4.2.1.Final
>            Reporter: Marián Labuda
>            Assignee: Xavier Coulon
>              Labels: jax-rs
>             Fix For: 4.6.x
>
>
> 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.
> {code:title=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);
> }
> {code}
> {code:title=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;
> 	}
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jbosstools-issues mailing list