You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Afshartous, Nick" <ni...@proactcorp.com> on 2002/05/28 18:21:46 UTC

PropertyUtils.copyProperties and aliasing

 

I just ran into an issue with PropertyUtils.copyProperties.
Since Java passes objects by reference the source and
destination beans both end up holding the same addresses
to any object values.  

Was wondering if a useful enhancement would be to have 
copyProperties check to see if a clone() method exists
on a object value before calling the appropriate setter
on the destination bean ?

  Nick

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>