You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Christian Poitras (JIRA)" <ji...@apache.org> on 2006/09/27 17:50:50 UTC
[jira] Created: (BEANUTILS-247) Arrays with multiple dimension are
not supported
Arrays with multiple dimension are not supported
------------------------------------------------
Key: BEANUTILS-247
URL: http://issues.apache.org/jira/browse/BEANUTILS-247
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
When an array with multiple dimension is used, accessing and setting properties is not supported.
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(PropertyUtilsBean.java:1122)
at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:272)
at Test.main(Test.java:24)
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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (BEANUTILS-247) Arrays with multiple dimension are
not supported
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEANUTILS-247?page=all ]
Henri Yandell updated BEANUTILS-247:
------------------------------------
Fix Version/s: 1.8.0
> Arrays with multiple dimension are not supported
> ------------------------------------------------
>
> Key: BEANUTILS-247
> URL: http://issues.apache.org/jira/browse/BEANUTILS-247
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Bean / Property Utils
> Affects Versions: 1.7.0
> Environment: I run BeanUtils on Windows XP with Eclipse 3.1.1.
> Reporter: Christian Poitras
> Fix For: 1.8.0
>
> Attachments: beanerror.zip, PropertyUtilsBean.java
>
>
> When an array with multiple dimension is used, accessing and setting properties is not supported.
> 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(PropertyUtilsBean.java:1122)
> at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
> at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:272)
> at Test.main(Test.java:24)
> 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (BEANUTILS-247) Arrays with multiple dimension are
not supported
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton updated BEANUTILS-247:
--------------------------------------
Component/s: (was: Bean / Property Utils)
Expression Syntax
> Arrays with multiple dimension are not supported
> ------------------------------------------------
>
> Key: BEANUTILS-247
> URL: https://issues.apache.org/jira/browse/BEANUTILS-247
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Expression Syntax
> Affects Versions: 1.7.0
> Environment: I run BeanUtils on Windows XP with Eclipse 3.1.1.
> Reporter: Christian Poitras
> Fix For: 1.8.0
>
> Attachments: beanerror.zip, PropertyUtilsBean.java
>
>
> When an array with multiple dimension is used, accessing and setting properties is not supported.
> 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(PropertyUtilsBean.java:1122)
> at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
> at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:272)
> at Test.main(Test.java:24)
> 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.
-
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
[jira] Resolved: (BEANUTILS-247) Arrays with multiple dimension are
not supported
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BEANUTILS-247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niall Pemberton resolved BEANUTILS-247.
---------------------------------------
Resolution: Fixed
Assignee: Niall Pemberton
Also see BEANUTILS-43 (improved mapped property support)
> Arrays with multiple dimension are not supported
> ------------------------------------------------
>
> Key: BEANUTILS-247
> URL: https://issues.apache.org/jira/browse/BEANUTILS-247
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Expression Syntax
> Affects Versions: 1.7.0
> Environment: I run BeanUtils on Windows XP with Eclipse 3.1.1.
> Reporter: Christian Poitras
> Assignee: Niall Pemberton
> Fix For: 1.8.0
>
> Attachments: beanerror.zip, PropertyUtilsBean.java
>
>
> When an array with multiple dimension is used, accessing and setting properties is not supported.
> 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(PropertyUtilsBean.java:1122)
> at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
> at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:272)
> at Test.main(Test.java:24)
> 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.
-
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
[jira] Updated: (BEANUTILS-247) Arrays with multiple dimension are
not supported
Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEANUTILS-247?page=all ]
Niall Pemberton updated BEANUTILS-247:
--------------------------------------
Component/s: Utils (Bean, Property, Method)
> Arrays with multiple dimension are not supported
> ------------------------------------------------
>
> Key: BEANUTILS-247
> URL: http://issues.apache.org/jira/browse/BEANUTILS-247
> Project: Commons BeanUtils
> Issue Type: Bug
> Components: Utils (Bean, Property, Method)
> Affects Versions: 1.7.0
> Environment: I run BeanUtils on Windows XP with Eclipse 3.1.1.
> Reporter: Christian Poitras
> Attachments: beanerror.zip, PropertyUtilsBean.java
>
>
> When an array with multiple dimension is used, accessing and setting properties is not supported.
> 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(PropertyUtilsBean.java:1122)
> at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
> at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:272)
> at Test.main(Test.java:24)
> 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
[jira] Updated: (BEANUTILS-247) Arrays with multiple dimension are
not supported
Posted by "Christian Poitras (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/BEANUTILS-247?page=all ]
Christian Poitras updated BEANUTILS-247:
----------------------------------------
Attachment: beanerror.zip
PropertyUtilsBean.java
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: http://issues.apache.org/jira/browse/BEANUTILS-247
> 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: beanerror.zip, PropertyUtilsBean.java
>
>
> When an array with multiple dimension is used, accessing and setting properties is not supported.
> 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(PropertyUtilsBean.java:1122)
> at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:686)
> at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:272)
> at Test.main(Test.java:24)
> 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: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org