[jira] [Commented] (COLLECTIONS-313) Allow Closure and CollectionUtils.forAllDo to throw Exception
[ https://issues.apache.org/jira/browse/COLLECTIONS-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038363#comment-13038363 ] Brent Worden commented on COLLECTIONS-313: -- If no one objects, I will commit the patch plus test cases. > Allow Closure and CollectionUtils.forAllDo to throw Exception > - > > Key: COLLECTIONS-313 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-313 > Project: Commons Collections > Issue Type: Improvement > Components: Collection >Affects Versions: 3.2 >Reporter: David J. M. Karlsen >Assignee: Brent Worden > Attachments: collections-313.txt > > Original Estimate: 0h > Remaining Estimate: 0h > > It would be nice if Closure.execute and CollectionUtils.forAllDo would be > allowed to throw Exceptions as the work inside of the Closure might very well > throw exceptions -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (COLLECTIONS-313) Allow Closure and CollectionUtils.forAllDo to throw Exception
[ https://issues.apache.org/jira/browse/COLLECTIONS-313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771583#action_12771583 ] Brent Worden commented on COLLECTIONS-313: -- In the past, I have created a closure implementation whose execute method delegates to an abstract method that allows throwing of exceptions. The attached patch contains the implementation. The benefit of using this closure extension is that it has no impact on the existing API and can be used in conjunction with all the existing functors. If others agree with this approach I can commit it along with some test cases. > Allow Closure and CollectionUtils.forAllDo to throw Exception > - > > Key: COLLECTIONS-313 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-313 > Project: Commons Collections > Issue Type: Improvement > Components: Collection >Affects Versions: 3.2 >Reporter: David J. M. Karlsen > Attachments: collections-313.txt > > Original Estimate: 0h > Remaining Estimate: 0h > > It would be nice if Closure.execute and CollectionUtils.forAllDo would be > allowed to throw Exceptions as the work inside of the Closure might very well > throw exceptions -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.