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 16525] - [beanutils] BeanUtils.setProperty is over-zealous at converting types
Date Fri, 09 Dec 2005 12:08:36 GMT
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=16525>.
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=16525





------- Additional Comments From hjohn@xs4all.nl  2005-12-09 13:08 -------
Created an attachment (id=17188)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17188&action=view)
Shows that BeanUtils.setProperty converts arrays even though they are
assignment compatible with java.lang.Object

BeanUtils.setProperty seems to be overzealous when it comes to converting
arrays when used with mapped properties.  It doesn't seem to realize that type
java.lang.Object for the mapped getter and setter is assignment compatible with
Arrays (specifically String[]).  Instead it converts a String[] to a String
(with only the value of the first element), discarding the rest of the array.

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


Mime
View raw message