Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BeanUtils.copyProperties copy a null value of type Double

807599Apr 17 2007 — edited Mar 27 2008
I'm trying to copy properties from one bean to another. In the source bean, I have the following
properties:
Double d = null;
String s = "nice";

After I do BeanUtils.copyProperties(targetBean, srcBean), my targetBean contains the following:
Double d = 0.0 instead of null
String s = "nice";

Any ideas?

cc
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2008
Added on Apr 17 2007
4 comments
3,015 views