[Mono-bugs] [Bug 75636][Maj] Changed - mcs incorrectly handes hide-by-name virtual methods not marked with newslot

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 6 08:20:21 EST 2006


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 rharinath at novell.com.

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

--- shadow/75636	2006-01-06 08:15:09.000000000 -0500
+++ shadow/75636.tmp.1431	2006-01-06 08:20:21.000000000 -0500
@@ -231,6 +231,40 @@
 
 ------- Additional Comments From miguel at ximian.com  2006-01-04 14:07 -------
 Raising the priority to Major, ikvm is an important showcase.
 
 ------- Additional Comments From rharinath at novell.com  2006-01-06 08:15 -------
 -> Runtime/System.Reflection
+
+------- Additional Comments From rharinath at novell.com  2006-01-06 08:20 -------
+The following simple testcase
+
+----8<----
+using System;
+using System.Reflection;
+
+class Test {
+	static void Main ()
+	{
+			MethodInfo m0 = Assembly.LoadFrom ("bug75636lib.dll").GetType
+("Bar").GetMethod ("clone", Type.EmptyTypes);
+		MethodInfo m1 = m0.GetBaseDefinition ();
+		MethodInfo m2 = m1.GetBaseDefinition ();
+		Console.WriteLine (m0.DeclaringType);
+		Console.WriteLine (m1.DeclaringType);
+		Console.WriteLine (m2.DeclaringType);
+        }
+}
+----8<----
+
+prints:
+
+Bar
+Foo
+Foo
+
+Where, it should print
+
+Bar
+Bar
+Bar
+


More information about the mono-bugs mailing list