[Mono-bugs] [Bug 82498][Nor] Changed - generate invalid IL code to callvirt

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Aug 25 14:55:23 EDT 2007


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 miguel at ximian.com.

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

--- shadow/82498	2007-08-25 14:31:13.000000000 -0400
+++ shadow/82498.tmp.18888	2007-08-25 14:55:23.000000000 -0400
@@ -144,6 +144,43 @@
 
 ------- Additional Comments From marek.safar at seznam.cz  2007-08-21 11:24 -------
 The produced assembly does not run on windows either.
 
 ------- Additional Comments From miguel at ximian.com  2007-08-25 14:31 -------
 The second one seems to work.
+
+------- Additional Comments From miguel at ximian.com  2007-08-25 14:55 -------
+A reduced test case:
+
+using System;
+
+public abstract  class BusinessBase<TYPE, KEY> where TYPE :
+BusinessBase<TYPE, KEY>, new ()
+{
+    public static void Load(KEY id)
+    {
+      TYPE instance = new TYPE();
+      instance = instance.DataSelect(id);
+    }
+
+    protected abstract TYPE DataSelect(KEY id);
+
+}
+
+public class Page : BusinessBase <Page, Guid> {
+    protected override Page DataSelect (Guid k)
+    {
+        return new Page ();
+    }
+}
+
+class D {
+    static void Main ()
+    {
+        Page.Load (new Guid());
+    }
+}
+
+
+
+This fails with Mono;   I do not have access to our internal network,
+so I can not test if this fails on Windows as well or not. 


More information about the mono-bugs mailing list