[Mono-bugs] [Bug 69001][Nor] Changed - WebRequest exceptions

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 2 Nov 2004 01:57:16 -0500 (EST)


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 gonzalo@ximian.com.

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

--- shadow/69001	2004-11-02 01:24:29.000000000 -0500
+++ shadow/69001.tmp.7833	2004-11-02 01:57:16.000000000 -0500
@@ -1,17 +1,17 @@
 Bug#: 69001
-Product: Mono: Class Libraries
+Product: Mono: Runtime
 Version: unspecified
 OS: unknown
 OS Details: Debian Sid
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
-Component: System
-AssignedTo: gonzalo@ximian.com                            
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: xavier@blackbloodstudios.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: WebRequest exceptions
@@ -45,6 +45,31 @@
 
 Just for kicks I tried it with Mono on windows (using the combined 1.0.2
 installer) and it didn't work either.
 
 ------- Additional Comments From sebastien@ximian.com  2004-11-01 19:19 -------
 *** Bug 54654 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From gonzalo@ximian.com  2004-11-02 01:57 -------
+This is not a bug in System.
+
+It's either the compiler or the runtime. I added a Console.WriteLine
+write before a line in HttpWebRequest that says 'throw throwMe;' and
+the exceptin is never thrown, but the message write before is printed.
+
+The IL generated for the end of the method
+HttpWebRequest::CheckFinalStatus is:
+
+	IL_022a:  ldstr "before the throw"
+	IL_022f:  call void class [mscorlib]System.Console::WriteLine(string)
+	IL_0234:  ldloc.0 
+	IL_0235:  throw 
+	IL_0236:  ldloc.s 7
+	IL_0238:  ret 
+
+which is:
+        Console.WriteLine ("before the throw");
+        throw throwMe;
+
+and throwMe is a valid WebException instance.
+
+I'm moving this to the runtime.