[jbosstools-issues] [JBoss JIRA] (JBIDE-19014) JAX-RS Web Services in Project Explorer does not show properly inherited metadata from abstract class

Marián Labuda (JIRA) issues at jboss.org
Thu Jan 8 09:43:30 EST 2015


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

Marián Labuda updated JBIDE-19014:
----------------------------------
    Description: 
I am having abstract class and it's descendant with following code.
{code:title=AbstractResource.java}
@Path("/resource")
public abstract class AbstractResource {

	@GET
	public abstract void getSomeObject();
}
{code}

{code:title=SpecificResource.java}
public class SpecificResource extends AbstractResource {

	@GET
	@Path("specific-object")
	@Override
	public void getSomeObject() {
		// some code
	}	
}
{code}

Implementation of getSomeObject along with its path is used for evaluation of HTTP GET request, but in JAX-RS Web Services Explorer is shown only matching URL from abstract class _/resource_ instead of _/resource/specific-object_.

  was:
I am having abstract class and it's descendant with following code.
{code:title=AbstractResource.java}
@Path("/resource")
public abstract class AbstractResource {

	@GET
	public abstract void getSomeObject();
}
{code}

{code:title=SpecificResource.java}
public class SpecificResource extends AbstractResource {

	@GET
	@Path("specific-object")
	@Override
	public void getSomeObject() {
		// some code
	}	
}
{code}

Implementation of getSomeObject along with its path is used for evaluation of HTTP GET request, but in JAX-RS Web Services Explorer is shown only matching URL from abstract class "/resource" instead of "/resource/specific-object".



> JAX-RS Web Services in Project Explorer does not show properly inherited metadata from abstract class
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-19014
>                 URL: https://issues.jboss.org/browse/JBIDE-19014
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: webservices
>    Affects Versions: 4.2.1.Final
>            Reporter: Marián Labuda
>              Labels: jax-rs
>
> I am having abstract class and it's descendant with following code.
> {code:title=AbstractResource.java}
> @Path("/resource")
> public abstract class AbstractResource {
> 	@GET
> 	public abstract void getSomeObject();
> }
> {code}
> {code:title=SpecificResource.java}
> public class SpecificResource extends AbstractResource {
> 	@GET
> 	@Path("specific-object")
> 	@Override
> 	public void getSomeObject() {
> 		// some code
> 	}	
> }
> {code}
> Implementation of getSomeObject along with its path is used for evaluation of HTTP GET request, but in JAX-RS Web Services Explorer is shown only matching URL from abstract class _/resource_ instead of _/resource/specific-object_.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)



More information about the jbosstools-issues mailing list