[Mono-bugs] [Bug 59427][Wis] New - Reachability of try with finally
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Jun 2004 22:56:26 -0400 (EDT)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=59427
--- shadow/59427 2004-06-01 22:56:26.000000000 -0400
+++ shadow/59427.tmp.3156 2004-06-01 22:56:26.000000000 -0400
@@ -0,0 +1,41 @@
+Bug#: 59427
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Reachability of try with finally
+
+class T {
+ static int Main ()
+ {
+ try {
+ } finally {
+ throw new System.Exception ("...");
+ }
+ }
+}
+
+The end of this method is not reachable, so the error `Not all code paths
+return a value' is incorrect.
+
+`
+The end point of a try statement is reachable if both of the following are
+true:
+ · The end point of the try block is reachable or the end point of at least
+one catch block is reachable.
+
+ · If a finally block is present, the end point of the finally block is
+reachable.
+'
+From 15.10 The try statement