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/10/07 07:44:05 UTC
DO NOT REPLY [Bug 32851] -
[beanutils] copyProperties and null/empty values
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=32851>.
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=32851
niallp@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From niallp@apache.org 2005-10-07 07:44 -------
BeanUtils has a converter for BigDecimal - but in the standard configuration it
is not configured with a default value. You can simply register one that has a
default to resolve your issue:
BigDecimal defaultValue = new BigDecimal("0");
Converter myConverter = new BigDecimalConverter(defaultValue);
ConvertUtils.register(myConverter, BigDecimal.class);
http://tinyurl.com/7uzbc
I'm closing this as INVALID.
--
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