commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Afshartous, Nick" <>
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 ?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message