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 19781] - PropertyUtils.copyProperties throws exceptions contrary to documentation
Date Thu, 08 May 2003 22:03:00 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=19781>.
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=19781

PropertyUtils.copyProperties throws exceptions contrary to documentation

apacheBugzilla@AMammenT.cotse.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |2.1 Final



------- Additional Comments From apacheBugzilla@AMammenT.cotse.net  2003-05-08 22:02 -------
Hmmm....  Actually there's more....

3) The copyProperties method also does not throw a NoSuchMethodException if a 
getter is missing from the src or a setter is missing from the dst; even when 
the setter is present on the src/getter on the dst implying that the set of 
PropertyDescriptors for the two beans both contain the property.  

The current implementation of copyProperties does not copy a property unless 
the property isReadable() in the src and isWriteable() in the dst.  Otherwise, 
it is blindly filtered out.  

No test case for this, because it's easy to see directly from the 
implementation of copyProperties.

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