You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/01/20 10:41:22 UTC

DO NOT REPLY [Bug 33176] New: - copyPropertes(List, List) does not work - pls warn about this

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33176>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33176

           Summary: copyPropertes(List, List) does not work - pls warn about
                    this
           Product: Commons
           Version: unspecified
          Platform: PC
               URL: http://cvs.apache.org/viewcvs.cgi/jakarta-
                    commons/beanutils/src/java/org/apache/commons/beanutils/
                    BeanUtilsBean.java?rev=1.17&view=markup
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: hauser@acm.org


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 Bug 16206

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org