commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Afshartous, Nick" <nick.afshart...@proactcorp.com>
Subject PropertyUtils.copyProperties and aliasing
Date Tue, 28 May 2002 16:21:46 GMT
 

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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message