[Mono-bugs] [Bug 59427][Wis] Changed - Reachability of try with finally

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Sep 2004 14:45:12 -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-09-20 13:44:46.000000000 -0400
+++ shadow/59427.tmp.17744	2004-09-20 14:45:12.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 59427
 Product: Mono: Compilers
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: bmaurer@users.sf.net               
 QAContact: mono-bugs@ximian.com
@@ -64,6 +64,25 @@
 Well, the compiler is expecting that a value is returned here,
 since you have an `int' result in your main.
 
 Either you return a value, or change it to void.
 
 Am closing this bug.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-09-20 14:45 -------
+This isnt correct. The following method
+
+static int Foo() {
+   throw new NotImplementedException ();
+}
+
+Happens alot in our code. Because of the reasons I cited in the spec, 
+it is a valid method.
+
+Likewise, 
+
+static void Foo () {
+try {} finally {throw new NotImplementedException (); } 
+}
+
+is valid.
+}