cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakub Bocheński (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CXF-4226) @Description on class level not "inherited"
Date Tue, 10 Apr 2012 12:09:16 GMT

    [ https://issues.apache.org/jira/browse/CXF-4226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250590#comment-13250590
] 

Jakub Bocheński commented on CXF-4226:
--------------------------------------

Hi, I tried 20120403.080549 snapshot of 2.5.3 and this still happens (when I move annotation
from implementation to interface it's not included in the generated WADL)
                
> @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 {
> 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

       

Mime
View raw message