commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Moritz <bjoern.mor...@gmail.com>
Subject [beanutils] BeanUtilsBean#setProperty() behaviour in 1.7 and 1.8
Date Mon, 07 Mar 2011 17:10:20 GMT
Hello,

is there a reason for BeanUtilsBean#setProperty() in line 968 not
using the PropertyType of the current PropertyDescriptor as the type
of class to convert to, but instead the class of the value to be
converted?
Until beanutils 1.7 a String array was converted to a string using the
first element of the array; since 1.8 the string array is converted to
a string using the toString method of the array (as the destination
type is now an array type).
Why can't we use the property descriptor for these mapped properties, too?

Regards,

Björn

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message