Hi!

I think the reason for the 'class'-property is the getClass-method of
java.lang.Object. I'm faced with the same problem (see
http://www.mail-archive.com/commons-user@jakarta.apache.org/msg00131.html).
Have you found a solution yet or even an explanation why the
'class'-property is there?

Regards
        Alexander



> -----Ursprüngliche Nachricht-----
> Von: Ming Fai [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 6. August 2002 07:11
> An: [EMAIL PROTECTED]
> Betreff: [BeanUtils] PropertyUtils.getPropertyDescriptors() problem
> 
> 
> when i use
>       PropertyUtils.getPropertyDescriptors( obj )  or
>       PropertyUtils.getPropertyDescriptors( obj.getClass() ) ,
> the returned PropertyDescriptor[] always include one extra 
> class item. For
> example, I've got a JavaBean that has 2 variables, then 
> PropertyUtils gives
> a PropertyDescriptor[] with a length of 3. In addition to the 
> two normal
> properties, there is one extra properties that the
> propertydescriptor.getName() is equal to 'class'.
> 
> I've tried PropertyUtils.clearDescriptors() but there is no 
> difference.
> What's wrong with it? did i miss any step to setup the utility?
> 
> regards,
> mingfai
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to