[Mono-bugs] [Bug 68552][Nor] Changed - Abort exception not properly
rethrown in some cases
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jul 6 16:19:08 EDT 2005
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 vargaz at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68552
--- shadow/68552 2005-06-29 06:48:59.000000000 -0400
+++ shadow/68552.tmp.28064 2005-07-06 16:19:08.000000000 -0400
@@ -122,6 +122,25 @@
}
}
}
The catch in the Main method should rethrow the abort exception, even
if the exception cached there is a regular exception.
+
+------- Additional Comments From vargaz at gmail.com 2005-07-06 16:19 -------
+The problem here is that the logic of when to rethrow the original
+exception is not well defined. If the test case is changed to:
+
+try {
+ Thread.CurrentThread.Abort ();
+}
+catch (ThreadAbortException ab) {
+ try {
+ throw new Exception ("FOO");
+ }
+ catch (Exception ex) {
+ }
+ Console.WriteLine ("Should not print this");
+}
+
+The MS runtime will print the message.
+
More information about the mono-bugs
mailing list