[ http://issues.apache.org/jira/browse/BEANUTILS-140?page=all ]
Henri Yandell updated BEANUTILS-140:
------------------------------------
Bugzilla Id: (was: 30203)
Fix Version/s: 1.8.0
> [beanutils] LocaleBeanUtils setProperty does not work on nested property
> ------------------------------------------------------------------------
>
> Key: BEANUTILS-140
> URL: http://issues.apache.org/jira/browse/BEANUTILS-140
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Locale BeanUtils / Converters
> Environment: Operating System: All
> Platform: All
> Reporter: Marco La Porta
> Fix For: 1.8.0
>
>
> LocaleBeanUtils setProperty does not work on nested property.
> I think the problem is in the method definePropertyType(Object target, String
> name, String propName).
> When property is a nested property ("prop1.propnested") target is the result
> of a call of the "prop1" getter on the oroginal bean, name is the property
> name complete ("prop1.propnested") and propName is the property name in
> target
> object ("propnested").
> At line 601 the property descriptor is defined as
> descriptor = PropertyUtils.getPropertyDescriptor(target, name);
> and in case of nested propery it is never found (null)
> I think the correct line 601 is
> descriptor = PropertyUtils.getPropertyDescriptor(target, propName);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]