You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/07/04 10:22:25 UTC

DO NOT REPLY [Bug 16525] - [beanutils] BeanUtils.setProperty is over-zealous at converting types

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 darren.hicks@gmail.com  2005-07-04 10:22 -------
Ummmm, I was shocked when I hit the code in BeanUtilsBean.setProperty() that was
calling my Converter even when the value being set was of the correct type. 
Instead, it was converted to a String and then (erroneously) converted back to
an object of the original type.

I'm not understanding why the first proposed bug fix ( Don't perform conversion
on types that are already assignment compatiable ) doesn't seem like the way to
go.  

When are people expecting a Converter to be called?  I always assumed it was
when a conversion was required, not when a type was being set. 

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