You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/07/20 10:36:14 UTC
DO NOT REPLY [Bug 30203] New: -
LocaleBeanUtils setProperty does not work on nested property
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30203>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30203
LocaleBeanUtils setProperty does not work on nested property
Summary: LocaleBeanUtils setProperty does not work on nested
property
Product: Commons
Version: 1.6 Final
Platform: All
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Bean Utilities
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: marco.laporta@tiscalinet.it
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);
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org