commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9868] - BeanUtils.populate() throws IllegalArgumentException when setting indexed property as array.
Date Sat, 15 Jun 2002 21:26:06 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message