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 2005/01/25 07:02:23 UTC

DO NOT REPLY [Bug 28358] - [beanutils] Problems on indexed property with JDK 1.4

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=28358>.
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=28358





------- Additional Comments From java@wendysmoak.com  2005-01-25 07:02 -------
Created an attachment (id=14084)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=14084&action=view)
Additional test for BeanUtilsBean to show problem with indexed property

(In reply to comment #10)
> The only observation I have on this is that you are naming your property and 

> indexed property methods with the same name. If you modify one of the method 

> names does it then work properly?

This came up again on the struts user list:
http://marc.theaimsgroup.com/?l=struts-user&m=110660079112504&w=2

Having four accessor methods for an indexed property is legal according to 7.2
and 8.3.3 of the JavaBeans specification.

I'm attaching a patch to BeanUtilsTestCase and a bean with a single indexed
property to illustrate the problem.

This test fails with the same error noted in the struts-user message:
     [java] There was 1 error:
     [java] 1)
testIndexedProperty(org.apache.commons.beanutils.BeanUtilsTestCas
e)java.lang.IllegalArgumentException: Cannot invoke
org.apache.commons.beanutils
.IndexedBean.setThings - argument type mismatch


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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