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 2002/06/10 16:39:56 UTC

DO NOT REPLY [Bug 9746] New: - BeanUtils.populate throws an exception if indexed property and string array parameter

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9746>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9746

BeanUtils.populate throws an exception if indexed property and string array parameter

           Summary: BeanUtils.populate throws an exception if indexed
                    property and string array parameter
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: eb@fullsix.com


I get the following exception :

$ java PopulateTest
java.lang.IllegalArgumentException: argument type mismatch
	at java.lang.reflect.Method.invoke(Native Method)
	at
org.apache.commons.beanutils.PropertyUtils.setIndexedProperty(PropertyUtils.java:1263)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:668)
	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:504)
	at PopulateTest.main(PopulateTest.java:12)

With the attached test case. Is this behavior normal?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>