You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bruce Ho <BH...@capita.com> on 2003/09/04 19:23:02 UTC
RE: org.apache.axis.encoding.FieldTarget bug?
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