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, 20 Jul 2002 22:39:51 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|REOPENED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From craig.mcclanahan@sun.com  2002-07-20 22:39 -------
The BeanUtils.populate() method has been custom designed for processing request
parameters (as Strings) into a single string if that is the underlying data type
of the property (which is what JavaBeans will say in this case), so it will not
be changed -- that would break backwards compatibility for a large number of users.

For general purpose copying of bean properties from one bean to another, you can
use PropertyUtils.copyProperties() if no conversions are necessary, and
BeanUtils.copyProperties() if conversions are needed.  This was added in a
recent nightly build.

Unit tests added in nightly build 20020721 to ensure that properties with both
subscripted and indexed setters work -- no functional changes were required in
the actual BeanUtils or PropertyUtils classes.

--
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