Re: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Tamas Szabo
You should note that PropertyUtils.describe() simply delegates to the standard JavaBeans introspection functionality to determine what the properties of the bean class are ... and, based on the property method naming rules, every Java class does indeed have a readonly property named "class" due

Re: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Craig McClanahan
On 7/26/05, Ed Griebel <[EMAIL PROTECTED]> wrote: > I had this issue where class was getting populated. Since it was for > logging display, I didn't want the long class name displayed and ended > up removing 'class' from the map if it was in there. It's much easier > than defining (and agreeing on!

Re: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Ed Griebel
I had this issue where class was getting populated. Since it was for logging display, I didn't want the long class name displayed and ended up removing 'class' from the map if it was in there. It's much easier than defining (and agreeing on!) these "special" fields in an object. The only change I

Re: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Tamas Szabo
Laurie Harper wrote: Tamas Szabo wrote: it seems to you ok that the org.apache.commons.beanutils.PropertyUtils.describe(Object ) method puts the class property(coming from java.lang.Object) in the map? I'm not sure about this, but it would be more logical for me if the class was not in the

Re: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Laurie Harper
Tamas Szabo wrote: it seems to you ok that the org.apache.commons.beanutils.PropertyUtils.describe(Object ) method puts the class property(coming from java.lang.Object) in the map? I'm not sure about this, but it would be more logical for me if the class was not in the Map(if it was not handle

Re: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Tamas Szabo
Hi, Are you saying that Bean should not extend Object? No, I'm saying that that getClass() shouldn't be handled as a getter for beans. Actually I'm saying this but I'm not really sure of it that's why I asked :-) I had some code which get the properties of a bean, but I explicitly check

Re: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Martin Gainty
: "Tamas Szabo" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, July 26, 2005 3:35 AM Subject: [OT] org.apache.commons.beanutils.PropertyUtils.describe(Object ) Hi, it seems to you ok that the org.apache.commons.beanutils.PropertyUtils.describe

[OT] org.apache.commons.beanutils.PropertyUtils.describe(Object )

2005-07-26 Thread Tamas Szabo
Hi, it seems to you ok that the org.apache.commons.beanutils.PropertyUtils.describe(Object ) method puts the class property(coming from java.lang.Object) in the map? I'm not sure about this, but it would be more logical for me if the class was not in the Map(if it was not handled as a normal