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/15 23:26:06 UTC

DO NOT REPLY [Bug 9868] - BeanUtils.populate() throws IllegalArgumentException when setting indexed property as array.

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

BeanUtils.populate() throws IllegalArgumentException when setting indexed property as array.

craig.mcclanahan@sun.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From craig.mcclanahan@sun.com  2002-06-15 21:26 -------
Overloading setter methods violates the JavaBeans design pattern rules, which
therefore causes the Java introspection (used by BeanUtils and PropertyUtils
underneath the covers) to not recognize that this property has a setter method
at all.  That is why it worked when you removed one of them.

You will note that TestBean uses two different property names ("stringArray" and
"stringIndexed") for performing these tests.  Because there is no overloading of
setter method names, the kind of assignment you are talking about works fine.

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