[Mono-bugs] [Bug 31470][Nor] Changed - unnecessary leave after throw

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
10 Oct 2002 00:37:44 -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 martin@gnome.org.

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

--- shadow/31470	Wed Oct  9 20:09:56 2002
+++ shadow/31470.tmp.5988	Wed Oct  9 20:37:44 2002
@@ -1,13 +1,13 @@
 Bug#: 31470
 Product: Mono/MCS
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: dietmar@ximian.com               
 QAContact: mono-bugs@ximian.com
@@ -208,7 +208,15 @@
 Even if we can't avoid the leave, the endless loop is because the leave was going outside of the method.  We need to use this dummy 
 ret in this case.  My latest flow analysis patch will fix this, it's now almost complete.
 
 
 ------- Additional Comments From martin@gnome.org  2002-10-09 20:09 -------
 Added your testcase to verify-1.cs
+
+
+------- Additional Comments From martin@gnome.org  2002-10-09 20:37 -------
+Ok, fixed in CVS.
+
+Paolo, to answer your question, I fixed the other bug you mentioned by emitting an explicit `ret' at the end of the method if the 
+try/catch could ever return.  The problem here was that it didn't realize that the try/catch may return.  I'm now using my flow 
+analsysis code for this.