You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2014/07/25 17:15:38 UTC

[jira] [Resolved] (CXF-5844) Annotations inherited from interface not merged with annotations from implementing method

     [ https://issues.apache.org/jira/browse/CXF-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-5844.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0
                   3.0.2
         Assignee: Sergey Beryozkin

Please be prepared to introduce a contextual property to enable the merge if JAX-RS JIRA will not directly support it in its resolution.

> Annotations inherited  from interface not merged with annotations from  implementing method
> -------------------------------------------------------------------------------------------
>
>                 Key: CXF-5844
>                 URL: https://issues.apache.org/jira/browse/CXF-5844
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Vjacheslav Borisov
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.2, 3.1.0
>
>
> Annotations inherited  from interface not merged with annotations from  implementing method
> example interface 
> {code:title=DocumentResource.java|borderStyle=solid}
> public interface DocumentResource {
>     @GET
>     @Produces("application/xml")
>     @Path("/document")
>     Document getDocument(@QueryParam("objectId") String objectId);
> }
> {code}
> example implementation method
> {code:title=DocumentResourceImpl.java|borderStyle=solid}
> public class DocumentResourceImpl implements DocumentResource {
>     @XSLTTransform(value="stylesheets/document.xsl", type = XSLTTransform.TransformType.CLIENT)
>     @Override
>     public Document getDocument(String objectId) {
>     }
> }
> {code}
> when i place breakpoint in XSLTJaxbProvider.java  in method isWriteable
> i see only three annotations in anns variable:     @GET, @Produces, @PATH, and don't see @XSLTTransform.
> Is this expected behavior?
> Doc only states "Similarly, annotations can be inherited from super-classes. In CXF, the resource class will inherit the class-level annotations from both its implemented interfaces and any class it extends."
> and don't mention annotations from implementing method



--
This message was sent by Atlassian JIRA
(v6.2#6252)