[
https://issues.apache.org/jira/browse/CXF-4226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250766#comment-13250766
]
Sergey Beryozkin commented on CXF-4226:
---------------------------------------
My tests show it actually works as long as all the JAX-RS annotations are
grouped at AInterface.
In JAX-RS the annotations are not supposed to be collected from multiple
sources, example, the following won't work:
{code:java}
@Produces("text/xml")
public class ResourceImpl implements Resource {
}
@Path("bar")
public interface Resource {
}
{code}
In the above case, the 'bar' will be lost unless it's pushed up or @Produces is
pushed down.
Do you have ResourceImpl introducing the annotations of its own ?
If you habe AInterface with many implementations then I guess @Description at
the AInterface is not unique enough per every implementation ?
> @Description on class level not "inherited"
> -------------------------------------------
>
> Key: CXF-4226
> URL: https://issues.apache.org/jira/browse/CXF-4226
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.5.3
> Reporter: Jakub Bocheński
> Priority: Minor
>
> This is really a minor one: if you define a resource via interface
> {code}@Description(title = "My resource")
> interface AResource {
> @GET
> @Description(title = "bar")
> Response foo();
> }{code}
> and then implement it:
> {code}class ResourceImpl implements AResource{
> Response foo(){
> return Response.ok().build();
> }
> }{code}
> Then the generated WADL document will contain the method description ("bar")
> but not the resource level description ("My resource").
> Workaround: annotate concrete implementation classes - this is of course
> rather tedious.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira