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:[EMAIL PROTECTED] > Sent: Thursday, August 28, 2003 5:45 PM > To: [EMAIL PROTECTED] > 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
