[
https://issues.apache.org/jira/browse/CXF-2869?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin resolved CXF-2869.
-----------------------------------
Fix Version/s: 2.3
Resolution: Fixed
> have JAXBElementProvider look for @XmlJavaTypeAdapter on the interfaces
> -----------------------------------------------------------------------
>
> Key: CXF-2869
> URL: https://issues.apache.org/jira/browse/CXF-2869
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.2.7, 2.2.8, 2.2.9
> Reporter: Peter Giles
> Fix For: 2.3, 2.2.10
>
>
> When the return type of a JAX-RS annotated method is an interface, and the
> interface has a @JavaXmlTypeAdapter on it, the JAXBElementProvider should
> find that adapter so it can do the appropriate conversion. Per Sergey:
> "At the moment JAXBElementProvider is capable of working with
> @XmlJavaTypeAdapter but it does not check the interfaces. The workaround :
> add @XmlJavaTypeAdapter as a method annotation to getAll() or to
> BaseballCardImpl. [...] but I can see that the fix can be trivial in this
> case :-)"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.