commons-issues mailing list archives

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


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

View raw message