[Mono-bugs] [Bug 26506][Nor] Changed - Wrong branch target with loops and void-returning methods

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 Jun 2002 08:49:27 -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 lupus@ximian.com.

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

--- shadow/26506	Wed Jun 19 18:02:58 2002
+++ shadow/26506.tmp.5799	Thu Jun 20 04:49:27 2002
@@ -2,14 +2,14 @@
 Product: Mono/MCS
 Version: unspecified
 OS: other
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
-Priority: Wishlist
+Severity: Unknown
+Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: lupus@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
@@ -28,6 +28,26 @@
 				break;
 		}
 	}
 	static void Main () {
 	}
 }
+
+------- Additional Comments From lupus@ximian.com  2002-06-20 04:49 -------
+A similar issue happens with try {throw... leave} finally {}.
+This is caused by the (sub-optimal) Reflection.Emit API for exceptions.
+Happens on both runtimes as well.
+using System;
+class T {
+        int stuff () {
+                try {
+                        throw new Exception ();
+                } finally {
+                        stuff2 ();
+                }
+        }
+        void stuff2 () {
+        }
+        static void Main() {
+        }
+}
+