From e8e41a3dc6c2e4a4ce9bb500f0c0aab93b214bc3 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 2 Sep 2008 12:28:47 +0000 Subject: [PATCH] Fix for #2036 svn changeset:5330/svn branch:trunk --- src/com/itmill/toolkit/data/util/BeanItem.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/com/itmill/toolkit/data/util/BeanItem.java b/src/com/itmill/toolkit/data/util/BeanItem.java index 8c24c5aced..f30d5fd820 100644 --- a/src/com/itmill/toolkit/data/util/BeanItem.java +++ b/src/com/itmill/toolkit/data/util/BeanItem.java @@ -43,7 +43,7 @@ public class BeanItem extends PropertysetItem { *

* * @param bean - * the Java Bean to copy properties from. + * the Java Bean to copy properties from. * */ public BeanItem(Object bean) { @@ -63,7 +63,8 @@ public class BeanItem extends PropertysetItem { final Class type = pd[i].getPropertyType(); final String name = pd[i].getName(); - if ((getMethod != null)) { + if ((getMethod != null) + && getMethod.getDeclaringClass() != Object.class) { final Property p = new MethodProperty(type, bean, getMethod, setMethod); addItemProperty(name, p); @@ -87,9 +88,9 @@ public class BeanItem extends PropertysetItem { *

* * @param bean - * the Java Bean to copy properties from. + * the Java Bean to copy properties from. * @param propertyIds - * id of the property. + * id of the property. */ public BeanItem(Object bean, Collection propertyIds) { @@ -138,9 +139,9 @@ public class BeanItem extends PropertysetItem { *

* * @param bean - * the Java Bean to copy properties from. + * the Java Bean to copy properties from. * @param propertyIds - * ids of the properties. + * ids of the properties. */ public BeanItem(Object bean, String[] propertyIds) { this(bean, Arrays.asList(propertyIds)); -- 2.39.5