Skip Menu |

This queue is for tickets about the Try-Tiny CPAN distribution.

Report information
The Basics
Id: 59339
Status: resolved
Priority: 0/
Queue: Try-Tiny

People
Owner: Nobody in particular
Requestors: perl [...] galumph.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: finally block is not executed if catch block throws an exception
Date: Tue, 13 Jul 2010 21:05:45 -0500
To: bug-Try-Tiny [...] rt.cpan.org
From: Elliot Shank <perl [...] galumph.com>
This could be considered a code bug or a documentation bug, depending upon one's perspective. To quote from the 0.06 documentation: "Finally blocks are always executed making them suitable for cleanup code which cannot be handled using local." This is not true; if the catch block throws an exception, then the finally block does not get run. I can see this from two perspectives. One could take the view that finally means finally dammit, and that that code should always execute, no matter what. On the other hand, one could say that catch blocks are supposed to be doing error handling and take care of such things as there being further problems. Given that view, it should just be documented that this is the case.
I can't reproduce this - can you supply a failing test? I've added a passing test for this issue to t/finally.t.
Subject: Re: [rt.cpan.org #59339] finally block is not executed if catch block throws an exception
Date: Sat, 08 Jan 2011 15:21:31 -0600
To: bug-Try-Tiny [...] rt.cpan.org
From: Elliot Shank <perl [...] galumph.com>
I can no longer reproduce this. You can close this report. Thanks.
Thanks, closed. -- rjbs