Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.3
-
None
-
Oracle JDK 1.7.0.10 and later.
Description
PropertyUtils.getPropertyType() for IndexedProperty works only for first invoked descendant class.
Bug reproduced in JDK 1.7.0.10 - 13. In JDK 1.7.0.9 it works fine. As I see, in JDK 1.7.0.10 java.beans.Introspector was changed, but I don't understand how it works.
Example
file is IndexedProperty of the RootBean (attachend to issue) with type ArrayList<String>.
RoootBean has two empty descendans: FirstChildBean and SecondChildBean.
RootBean bean = new FirstChildBean(); Class propertyType = PropertyUtils.getPropertyType(bean, "file[0]"); System.out.println(propertyType != null ? propertyType.getName() : null); -- Expected: java.lang.String, Actual: java.lang.String bean = new SecondChildBean(); propertyType = PropertyUtils.getPropertyType(bean, "file[0]"); System.out.println(propertyType != null ? propertyType.getName() : null); -- Expected: java.lang.String, Actual: null
Attachments
Attachments
Issue Links
- requires
-
BEANUTILS-432 Switch to Java 1.5
- Resolved