Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 225F5200BEF for ; Tue, 20 Dec 2016 20:50:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 211BE160B29; Tue, 20 Dec 2016 19:50:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6E880160B12 for ; Tue, 20 Dec 2016 20:49:59 +0100 (CET) Received: (qmail 68911 invoked by uid 500); 20 Dec 2016 19:49:58 -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 68887 invoked by uid 99); 20 Dec 2016 19:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Dec 2016 19:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 874702C1F54 for ; Tue, 20 Dec 2016 19:49:58 +0000 (UTC) Date: Tue, 20 Dec 2016 19:49:58 +0000 (UTC) From: "Sanjin Tulac (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-7186) Aegis DataBinding ignores JAXB annotations on a field MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Dec 2016 19:50:00 -0000 [ https://issues.apache.org/jira/browse/CXF-7186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sanjin Tulac updated CXF-7186: ------------------------------ Affects Version/s: 3.1.9 3.0.12 > Aegis DataBinding ignores JAXB annotations on a field > ----------------------------------------------------- > > Key: CXF-7186 > URL: https://issues.apache.org/jira/browse/CXF-7186 > Project: CXF > Issue Type: Bug > Components: Aegis Databinding > Affects Versions: 2.7.18, 3.1.9, 3.0.12 > Reporter: Sanjin Tulac > Attachments: CXF Aegis Data Binding.png, CXF-7186.patch > > > I've been trying to use CXF with Aegis DataBinding to host a web service that needs to be called by a 3rd party, using 3rd party's XML schema. > It turns out that 3rd party XML schema has a naming convention that element names start with upper case. wsdl2java correctly placed JAXB XMLElement annotations on the fields in the generated POJOs, But at run-time, Aegis DataBinding ignores these JAXB annotations on the fields, which causes the XML from 3rd party to be ignored, instead of converted to the generated POJOs. > I've identified the culprit to be org.apache.cxf.aegist.type.AnnotatedTypeInfo class, whose method createQName only looks for annotations on the getter methods, but ignores annotations on fields. > I can see that this defect stems from the attempt to support both Aegis and JAXB annotations: former expect annotations on the getter methods, but latter however, even though quite similar, expect annotations on the field. -- This message was sent by Atlassian JIRA (v6.3.4#6332)