cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Winkels (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6074) Add configured XmlAdapters
Date Fri, 16 Jan 2015 17:00:39 GMT

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

Maarten Winkels commented on CXF-6074:
--------------------------------------

This issue seems to be due to a check in jaxb-impl-2.1.14, that checks for no-arg constructor
for a property type, even though the property has a @XmlJavaTypeAdapter. A simple work around
is to add a default constructor to the (test) class.

> Add configured XmlAdapters
> --------------------------
>
>                 Key: CXF-6074
>                 URL: https://issues.apache.org/jira/browse/CXF-6074
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>            Reporter: Maarten Winkels
>             Fix For: 3.0.3
>
>
> In some cases an XmlAdapter (as used by JAXB) needs state. For this the Marshaller and
Unmarshaller have a setAdapter(...) method, that accepts a configured instance.
> Currently the JAXBDataBinding has no configuration for this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message