commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent Worden (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COLLECTIONS-313) Allow Closure and CollectionUtils.forAllDo to throw Exception
Date Thu, 29 Oct 2009 20:05:59 GMT

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


Mime
View raw message