You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "David J. M. Karlsen (JIRA)" <ji...@apache.org> on 2009/01/23 16:27:59 UTC
[jira] Created: (COLLECTIONS-313) Allow Closure and
CollectionUtils.forAllDo to throw Exception
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: Bug
Components: Collection
Affects Versions: 3.2
Reporter: David J. M. Karlsen
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.
[jira] Updated: (COLLECTIONS-313) Allow Closure and
CollectionUtils.forAllDo to throw Exception
Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COLLECTIONS-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell updated COLLECTIONS-313:
--------------------------------------
Issue Type: Improvement (was: Bug)
> 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
> 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.
[jira] Commented: (COLLECTIONS-313) Allow Closure and
CollectionUtils.forAllDo to throw Exception
Posted by "Brent Worden (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (COLLECTIONS-313) Allow Closure and
CollectionUtils.forAllDo to throw Exception
Posted by "Brent Worden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COLLECTIONS-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brent Worden updated COLLECTIONS-313:
-------------------------------------
Attachment: collections-313.txt
throwing closure
> 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.
[jira] Updated: (COLLECTIONS-313) Allow Closure and
CollectionUtils.forAllDo to throw Exception
Posted by "Brent Worden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COLLECTIONS-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brent Worden updated COLLECTIONS-313:
-------------------------------------
Comment: was deleted
(was: throwing closure)
> 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.