commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Poitras (JIRA)" <>
Subject [jira] Updated: (BEANUTILS-247) Arrays with multiple dimension are not supported
Date Wed, 27 Sep 2006 15:55:51 GMT
     [ ]

Christian Poitras updated BEANUTILS-247:


The first attachment contains a Test which raises the exception given in the issue.

The second attachment is a patch that works for my specific case. This patch will not work
in most cases, but the general idea is in the "getIndexedProperty(Object bean, String name)"
method and in the "getIndexedProperty(Object bean, String name, int index)" method. The idea
is likely to work in other methods.

> Arrays with multiple dimension are not supported
> ------------------------------------------------
>                 Key: BEANUTILS-247
>                 URL:
>             Project: Commons BeanUtils
>          Issue Type: Bug
>    Affects Versions: 1.7.0 Release
>         Environment: I run BeanUtils on Windows XP with Eclipse 3.1.1.
>            Reporter: Christian Poitras
>         Attachments:,
> When an array with multiple dimension is used, accessing and setting properties is not
> For instance, the call to PropertyUtils.getNestedProperty(myObject, "multiArray[0][0].id")
fails since the second array index is never used.
> This raises the following exception.
> Exception in thread "main" java.lang.NoSuchMethodException: Unknown property 'id'
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getSimpleProperty(
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(
> 	at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(
> 	at Test.main(
> The "id" property does exists in the object "multiArray[0][0]" and if I make a call to
multiArray[0][0].getId(), the correct value is returned.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message