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 2003/06/25 10:50:47 UTC

DO NOT REPLY [Bug 21076] New: - Add "aggressive" mode for BeanUtils.copyProperty()

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21076

Add "aggressive" mode for BeanUtils.copyProperty()

           Summary: Add "aggressive" mode for BeanUtils.copyProperty()
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: apachebugs@chasmcity.com


Currently, the Beanutils.copyProperty() method behaves as per the javadoc:

"If the specified bean does not have a property of the specified name, or the 
property is read only on the destination bean, return without doing anything"

It would be good if the method could take an optional extra parameter which 
indicated whether or not this behaviour should be more aggressive, i.e. if the
bean does not have a read-write property of the appropriate name, then throw an
exception.  An overloaded copyProperty() is the obvious choice.

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