[
https://issues.apache.org/jira/browse/BEANUTILS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Yandell closed BEANUTILS-168.
-----------------------------------
Resolution: Fixed
Note added to Javadoc.
svn ci -m "Adding note to Javadoc that copyProperties is for copying properties
and not for copying the contents of arrays or Lists. I pondered adding that
functionality, but there's already some weird Map->Bean functionality in place
and I felt it would just confuse things as I would have had to somewhat fix
that to allow for Map->Map copying. "
src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
Sending src/java/org/apache/commons/beanutils/PropertyUtilsBean.java
Transmitting file data .
Committed revision 517894.
> [beanutils] copyProperties(List, List) does not work - pls warn about this
> --------------------------------------------------------------------------
>
> Key: BEANUTILS-168
> URL: https://issues.apache.org/jira/browse/BEANUTILS-168
> Project: Commons BeanUtils
> Issue Type: Improvement
> Components: Bean / Property Utils
> Environment: Operating System: All
> Platform: PC
> Reporter: Ralf Hauser
> Priority: Minor
> Fix For: 1.8.0
>
>
> my application tries to copy a list.
> List workerList = new ArrayList();
> BeanUtils.copyProperties(workerList, msg.getAllRecip());
> the size of the ArrayList allRecip in my msg object is 6.
> After the copy, the size of the workerList remains 0.
> Sure,
> workerList.addAll(msg.getAllRecip());
> works as an alternative, but wouldn't it be appropriate to warn the user of
> copyProperties ?
> Might be related to COM-343
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]