Hi,

I've noticed that ConvertUtilsBean.register only accepts destination class
for conversion. Are all source values regarded as Strings, and then
converted to the destination class? Why is it so? 

line #1007 of BeanUtilsBean.java:
newValue = getConvertUtils().convert(value.toString(), type);

Suppose the case that I have a java.sql.Timestamp and want to convert it to
java.utils.Date. It first converts Timestamp to String and then I have to
parse it again in my custom converter (registered for java.util.Date) ....
Parsing a Date string is a rather timely process.

I'm using beanutils 1.7.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/-beanutils--On-Converters-tf3540137.html#a9882201
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to