commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21076] New: - Add "aggressive" mode for BeanUtils.copyProperty()
Date Wed, 25 Jun 2003 08:50:47 GMT
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


Mime
View raw message