[Mono-bugs] [Bug 68888][Nor] Changed - HEAD regression when reflecting on a private interface

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 1 Nov 2004 22:40:12 -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 miguel@ximian.com.

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

--- shadow/68888	2004-11-01 22:32:36.000000000 -0500
+++ shadow/68888.tmp.29973	2004-11-01 22:40:12.000000000 -0500
@@ -149,6 +149,51 @@
                                 }
 -#endif
 
 
 
 
+
+------- Additional Comments From miguel@ximian.com  2004-11-01 22:40 -------
+test-313 on CVS will reproduce the bug
+
+using System.Reflection;
+using System;
+using A;
+
+namespace A {
+	interface B {
+		void METHOD ();
+	}
+}
+
+
+class D : B {
+	void B.METHOD ()
+	{
+	}
+
+	static int Main ()
+	{
+		MethodInfo [] mi = typeof (D).GetMethods (BindingFlags.Instance |
+BindingFlags.NonPublic);
+		MethodInfo m = null;
+		
+		foreach (MethodInfo j in mi){
+			if (j.Name.IndexOf ("METHOD") != -1){
+				m = j;
+				break;
+			}
+		}
+		if (m == null)
+			return 1;
+
+		if (m.Name != "A.B.METHOD"){
+			Console.WriteLine ("Incorrect method name, expecting: {0} got {1}",
+					   "A.B.METHOD", m.Name);
+			return 2;
+		}
+
+		return 0;
+	}
+}
+