axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Ho <...@capita.com>
Subject RE: org.apache.axis.encoding.FieldTarget bug?
Date Thu, 04 Sep 2003 17:23:02 GMT
I am answering my own posting after finding out a few things. Apparently,
FieldTarget is meant to be used for public fields. For other qualifiers (eg.
Protected, private, etc.), use MethodTarget or BeanPropertyTarget.

Bruce

> -----Original Message-----
> From: Bruce Ho [mailto:BHo@capita.com]
> Sent: Thursday, August 28, 2003 5:45 PM
> To: axis-user@ws.apache.org
> Subject: org.apache.axis.encoding.FieldTarget bug?
> 
> I did many tests and it appears that new FieldTarget(value, localName)
> only
> works if localName is a public attribute of the class represented by
> (Object)value. Is this true. Otherwise, it throws a NoSuchFieldException.
> 
> How can one work with this limitation? Does this mean you can not write
> custom deserializers for Java classes with private or protected
> attributes?
> 
> Much obliged for any insight on this very crucial subject.
> 
> 
> Bruce

Mime
View raw message