commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (BEANUTILS-319) PropertyUtils.getPropertyType fails for DynaBeans contained within a normal bean
Date Tue, 19 Aug 2008 22:54:44 GMT

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

Niall Pemberton resolved BEANUTILS-319.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.8.0
         Assignee: Niall Pemberton

Erik, thanks for the patch - I committed a slightly modified version (using getProperty()
to resolve the nested references):

http://svn.apache.org/viewvc?view=rev&revision=687190

> PropertyUtils.getPropertyType fails for DynaBeans contained within a normal bean
> --------------------------------------------------------------------------------
>
>                 Key: BEANUTILS-319
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-319
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.0-BETA
>            Reporter: Erik Erskine
>            Assignee: Niall Pemberton
>             Fix For: 1.8.0
>
>         Attachments: InnerDynaBeanTestCase.java, patch.txt
>
>
> public class OuterBean {
>     private DynaBean inner;
>     public DynaBean getInner() {
>         return inner;
>     }
>     public void setInner(DynaBean inner) {
>         this.inner = inner;
>     }
> }
> I am unable to get the type of any of the DynaBean properties as nested properties of
the outer bean. I can get them using the DynaBean directly, eg:
> PropertyUtils.getPropertyType(outer.getInner(), "foo")    <- returns correct type
> PropertyUtils.getPropertyType(outer, "inner.foo")            <- returns null

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message