You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/03/06 23:26:10 UTC
[jira] [Closed] (GROOVY-8259) add suppressed exceptions for
with[Auto]Closeable methods
[ https://issues.apache.org/jira/browse/GROOVY-8259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8259.
-----------------------------
> add suppressed exceptions for with[Auto]Closeable methods
> ---------------------------------------------------------
>
> Key: GROOVY-8259
> URL: https://issues.apache.org/jira/browse/GROOVY-8259
> Project: Groovy
> Issue Type: Improvement
> Components: groovy-runtime
> Affects Versions: 2.5.0-beta-1
> Reporter: John Wagenleitner
> Assignee: John Wagenleitner
> Priority: Minor
> Fix For: 2.5.0-beta-2
>
>
> As with the try-with-resources statement, if multiple exceptions are thrown the exception from the closure should be returned and the exception from closing should be added as a suppressed exception.
> Currently the withCloseable/withAutoCloseable method return the closure exception and log a warning if an exception is thrown on the call to {{close()}}. With this improvement the exception from {{close()}} would also be added as a suppressed exception to the exception thrown from the closure.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)