Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 44459 invoked from network); 15 Feb 2009 23:11:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2009 23:11:51 -0000 Received: (qmail 98751 invoked by uid 500); 15 Feb 2009 23:11:49 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 98706 invoked by uid 500); 15 Feb 2009 23:11:48 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 98634 invoked by uid 99); 15 Feb 2009 23:11:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 15:11:48 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bimargulies@gmail.com designates 74.125.44.156 as permitted sender) Received: from [74.125.44.156] (HELO yx-out-1718.google.com) (74.125.44.156) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 23:05:43 +0000 Received: by yx-out-1718.google.com with SMTP id 3so1005331yxi.6 for ; Sun, 15 Feb 2009 15:05:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2lmabUKLm5WG1HW1ovIbnnkVXDjhMD9m/Pk9FC9nI2A=; b=EznLYKU3YC2r6PHxcsAqA+v2NFxfzZ1s4hxKZindpLeoxcc3o8j3+9DYQ6U7basE1i hxas1DsbSXMMr1k3Uvg9UKLy5N1AIL5/z1vxl7Pg0BIUO5SfWcOeNAMIc2zvzOzdepjW VGOuRsliIlRbQU6r56PjirHkY+o1wG/58AeiI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=gvea6asUmXdmiewA177CUKGvOq7cRcg6O3RHcZXnOHFoJWtuB4sZ14GNBtyWyxD3gB KAo0aPb+CWhUfcxK6HaOXGg6qJGYO5aJMj0uV5fXswS3ape78Hso6imRBXAHDjWpqU3O Fs/AlLvhtZfD0QfmVKuqKtkUr7uvn3XP+Hq8E= MIME-Version: 1.0 Received: by 10.151.84.1 with SMTP id m1mr122000ybl.147.1234739122078; Sun, 15 Feb 2009 15:05:22 -0800 (PST) In-Reply-To: <22028908.post@talk.nabble.com> References: <2B674CE447106D46A53D0FDDC7DF8B1C027E91DA@PTXSMSXM01.emea.ime.reuters.com> <61b5d9410810100500x61e7238ds56808c437c59ca7@mail.gmail.com> <22022406.post@talk.nabble.com> <61b5d9410902150532j2559caddn7d1897932ff915a9@mail.gmail.com> <22022881.post@talk.nabble.com> <61b5d9410902150631v780b8690x7074c3f485608967@mail.gmail.com> <61b5d9410902151326y4a6fa8a1g67251ef58675d5b3@mail.gmail.com> <22028908.post@talk.nabble.com> Date: Sun, 15 Feb 2009 18:05:22 -0500 Message-ID: <61b5d9410902151505t7e721a76u72e853757296c9c4@mail.gmail.com> Subject: Re: CXF doesn't respect annotations From: Benson Margulies To: users@cxf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I think that if you read any of the stock tutorials on JAXB, you'll see that this is made pretty clear. They explain that JAXB infers elements from fields or from get/setters, as controlled by the annotations on the class. By default, those annotations do not examine anything private. Look at the J2SE 6.0 javadoc for XmlAccessorType to see what I'm talking about. On Sun, Feb 15, 2009 at 5:59 PM, kariem@sf wrote: > > > bimargulies wrote: > > > > This is a bug in the Jaxb RI 2.1.9. > > > > Fast and very good response, Beson. Thank you very much. Everything working > now, thanks to your suggestion on the issue: putting the annotation on the > setter method for the property made it work. I have updated the JIRA issue > with a working test case. > > The problem is resolved, but I still have a bad feeling. Do you recommend > filing a bug with JAXB (it should work on class field level)? Should we add > something to the documentation for CXF? Or do you think the JIRA issue and > the comments on this list are enough? > > Cheers, > Kariem > > -- > View this message in context: http://www.nabble.com/CXF-doesn%27t-respect-annotations-tp19894613p22028908.html > Sent from the cxf-user mailing list archive at Nabble.com. >