[Mono-bugs] [Bug 24699] New - finally being called twice

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
14 May 2002 17:36:57 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jarek@atm.com.pl.

http://bugzilla.ximian.com/show_bug.cgi?id=24699

--- shadow/24699	Tue May 14 13:36:57 2002
+++ shadow/24699.tmp.17707	Tue May 14 13:36:57 2002
@@ -0,0 +1,47 @@
+Bug#: 24699
+Product: Mono/Runtime
+Version: unspecified
+OS: Red Hat 7.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jarek@atm.com.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: finally being called twice
+
+Looks like the finally block is being called twice as in the example:
+Seems to be critical.
+
+==========
+   int c = 0;
+   try
+   {
+    throw new Exception("Test exception");
+   }
+   catch (Exception e)
+   {
+    Console.WriteLine("Exception: {0}", e.Message);
+   }
+   finally
+   { 
+    Console.WriteLine("Finally... {0}", c++);
+   }
+==============
+
+Actual Results:
+===============
+Exception: Test exception
+Finally... 0
+Finally... 1
+
+Expected Results:
+=================
+Exception: Test exception
+Finally... 0