mail-archives/mono-bugs/2005-June/031098.html

129 строки
4.9 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:03:35 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 68552][Nor] Changed - Abort exception not properly
rethrown in some cases
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2068552%5D%5BNor%5D%20Changed%20-%20Abort%20exception%20not%20properly%0A%09rethrown%20in%20some%20cases&In-Reply-To=bug-68552%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="031097.html">
<LINK REL="Next" HREF="031099.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 68552][Nor] Changed - Abort exception not properly
rethrown in some cases</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2068552%5D%5BNor%5D%20Changed%20-%20Abort%20exception%20not%20properly%0A%09rethrown%20in%20some%20cases&In-Reply-To=bug-68552%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 68552][Nor] Changed - Abort exception not properly
rethrown in some cases">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Tue Jun 28 14:51:10 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="031097.html">[Mono-bugs] [Bug 69258][Maj] Changed - mod_mono package should
require libapr &gt;= 0.9.4
</A></li>
<LI>Next message: <A HREF="031099.html">[Mono-bugs] [Bug 75412][Min] New - indexers always treated as public
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#31098">[ date ]</a>
<a href="thread.html#31098">[ thread ]</a>
<a href="subject.html#31098">[ subject ]</a>
<a href="author.html#31098">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">lluis at ximian.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=68552">http://bugzilla.ximian.com/show_bug.cgi?id=68552</A>
--- shadow/68552 2005-01-17 10:20:39.000000000 -0500
+++ shadow/68552.tmp.7233 2005-06-28 14:51:10.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 68552
Product: Mono: Runtime
Version: unspecified
OS: Windows XP (Cygwin)
OS Details: Windows XP SP2
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Normal
Component: misc
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vargaz at gmail.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">lluis at ximian.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
@@ -86,6 +86,41 @@
------- Additional Comments From <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vargaz at gmail.com</A> 2005-01-17 10:15 -------
This should be fixed in SVN.
------- Additional Comments From <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">vargaz at gmail.com</A> 2005-01-17 10:20 -------
Really fixed.
+
+------- Additional Comments From <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">lluis at ximian.com</A> 2005-06-28 14:51 -------
+I'm reopening this bug because although the patch did fix the previous
+cases, it did generate a new case in which the abort exception is not
+properly rethrown. This is the test case:
+
+using System;
+using System.Threading;
+
+namespace Bug
+{
+ public class Test
+ {
+ public static void Main(string[] args)
+ {
+ try {
+ Run ();
+ } catch (Exception ex) {
+ }
+ Console.WriteLine (&quot;Should not print this&quot;);
+ }
+
+ public static void Run ()
+ {
+ try {
+ Thread.CurrentThread.Abort ();
+ } catch (Exception ex) {
+ throw new Exception (&quot;other&quot;);
+ }
+ }
+ }
+}
+
+The catch in the Main method should rethrow the abort exception, even
+if the exception cached there is a regular exception.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="031097.html">[Mono-bugs] [Bug 69258][Maj] Changed - mod_mono package should
require libapr &gt;= 0.9.4
</A></li>
<LI>Next message: <A HREF="031099.html">[Mono-bugs] [Bug 75412][Min] New - indexers always treated as public
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#31098">[ date ]</a>
<a href="thread.html#31098">[ thread ]</a>
<a href="subject.html#31098">[ subject ]</a>
<a href="author.html#31098">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>