Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 54116 invoked from network); 27 Oct 2009 15:52:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Oct 2009 15:52:24 -0000 Received: (qmail 95969 invoked by uid 500); 27 Oct 2009 15:52:24 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 95883 invoked by uid 500); 27 Oct 2009 15:52:24 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 95840 invoked by uid 99); 27 Oct 2009 15:52:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 15:52:23 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Oct 2009 15:52:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 84221234C052 for ; Tue, 27 Oct 2009 08:51:59 -0700 (PDT) Message-ID: <490921897.1256658719539.JavaMail.jira@brutus> Date: Tue, 27 Oct 2009 15:51:59 +0000 (UTC) From: "Stefan Fussenegger (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-2500) JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property -------------------------------------------------------------------------------- Key: CXF-2500 URL: https://issues.apache.org/jira/browse/CXF-2500 Project: CXF Issue Type: New Feature Components: JAXB Databinding Affects Versions: 2.2.4 Reporter: Stefan Fussenegger JAXBContextInitializer does not support JAXBRIContext.ANNOTATION_READER property which is used to specify a different RuntimeAnnotationReader. For instance, this property is required for JAXBIntroductions (http://www.jboss.org/community/wiki/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 though) 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. - You can reply to this email to add a comment to the issue online.