[
https://issues.apache.org/jira/browse/CXF-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14052587#comment-14052587
]
Sergey Beryozkin commented on CXF-5844:
---------------------------------------
I'm actually not sure :-)
Lets keep this issue open till
https://java.net/jira/browse/JAX_RS_SPEC-472
gets resolved
> 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
> Priority: Minor
>
> Annotations inherited from interface not merged with annotations from
> implementing method
> example interface
> public interface DocumentResource {
> @GET
> @Produces("application/xml")
> @Path("/document")
> Document getDocument(@QueryParam("objectId") String objectId);
> }
> example implementation method
> public class DocumentResourceImpl implements DocumentResource {
> @XSLTTransform(value="stylesheets/document.xsl", type =
> XSLTTransform.TransformType.CLIENT)
> @Override
> public Document getDocument(String objectId) {
> }
> }
> }
> 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)