[Mono-bugs] [Bug 45649][Nor] Changed - "sealed" attribute on classes not enforced
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Mon, 30 Jun 2003 19:59:21 -0400 (EDT)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=45649
--- shadow/45649 Mon Jun 30 15:37:25 2003
+++ shadow/45649.tmp.15837 Mon Jun 30 19:59:21 2003
@@ -1,14 +1,14 @@
Bug#: 45649
Product: Mono/MCS
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Misc
AssignedTo: mono-bugs@ximian.com
ReportedBy: sebastian.nowozin@web.de
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -39,7 +39,29 @@
MS csc does bail out.
------- Additional Comments From sebastian.nowozin@web.de 2003-06-30 15:37 -------
Created an attachment (id=4748)
Testcase, deriving System.Net.WebClient, which is sealed
+
+
+------- Additional Comments From bmaurer@users.sf.net 2003-06-30 19:59 -------
+The below sample will run in mono. So that means not only does MCS
+compile it incorrectly, but also that mono incorrectly runs the
+invalid IL code!
+
+public class MyWebClient : System.Net.WebClient
+{
+ public new byte[] DownloadData (string address)
+ {
+ return (base.DownloadData (address + "foo"));
+ }
+
+ public static void Main ()
+ {
+ MyWebClient w = new MyWebClient ();
+ w.BaseAddress = "http://go-mono.com";
+ System.Console.WriteLine (w.BaseAddress);
+ }
+}
+