You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Peter Giles (JIRA)" <ji...@apache.org> on 2010/07/02 18:30:49 UTC
[jira] Created: (CXF-2869) have JAXBElementProvider look for
@XmlJavaTypeAdapter on the interfaces
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.9, 2.2.8, 2.2.7
Reporter: Peter Giles
Fix For: 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.
[jira] Resolved: (CXF-2869) have JAXBElementProvider look for
@XmlJavaTypeAdapter on the interfaces
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ 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.