commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BEANUTILS-140) LocaleBeanUtils setProperty does not work on nested property
Date Thu, 12 Jul 2007 03:07:06 GMT

     [ https://issues.apache.org/jira/browse/BEANUTILS-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton updated BEANUTILS-140:
--------------------------------------

             Assignee: Niall Pemberton
    Affects Version/s: 1.7.0
              Summary: LocaleBeanUtils setProperty does not work on nested property  (was:
[beanutils] LocaleBeanUtils setProperty does not work on nested property)

> LocaleBeanUtils setProperty does not work on nested property
> ------------------------------------------------------------
>
>                 Key: BEANUTILS-140
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-140
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Locale BeanUtils / Converters
>    Affects Versions: 1.7.0
>         Environment: Operating System: All
> Platform: All
>            Reporter: Marco La Porta
>            Assignee: Niall Pemberton
>             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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message