cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] [Resolved] (CXF-2500) JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property
Date Fri, 09 Sep 2011 18:43:09 GMT


Daniel Kulp resolved CXF-2500.

       Resolution: Won't Fix
    Fix Version/s: Invalid

This improvement request has been open for years and no-one has stepped up to implement it.
As such, it does not seems to be a priority for the existing CXF community. If, in the future,
someone would like to tackle this, feel free to open is and attach a patch.

> JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property
> --------------------------------------------------------------------------------
>                 Key: CXF-2500
>                 URL:
>             Project: CXF
>          Issue Type: New Feature
>          Components: JAXB Databinding
>    Affects Versions: 2.2.4
>            Reporter: Stefan Fussenegger
>             Fix For: Invalid
>         Attachments:
> JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property which
is used to specify a different RuntimeAnnotationReader. For instance, this property is required
for JAXBIntroductions ( to work. While
trying to use JAXBIntroductions, I've noticed that JAXBContextInitializer was ignoring @XmlTransient
and therefore included a lot of unused classes - (marshalling and unmarshalling works as expected
> Instead of calling (e.g.) clazz.getAnnotation(XmlJavaTypeAdapter.class) directly, runtimeAnnotationReader.getClassAnnotation(clazz,
XmlJavaTypeAdapter.class, srcpos) should be used. I'll attach a patch containing yet untested
(sorry, but I wasn't able to build from source) changes to JAXBContextInitializer.
> If out-of-the-box support of JAXBRIContext.ANNOTATION_READER isn't possible, I'd really
appreciate the possibility to plug in a custom implementation, e.g. using JAXBContextInitializer
initializer = newJAXBContextInitializer(serviceInfo, contextClasses) in JAXBDataBinding.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message