[Mono-bugs] [Bug 68888][Nor] New - HEAD regression when reflecting on a private interface
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 28 Oct 2004 10:05:47 -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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=68888
--- shadow/68888 2004-10-28 10:05:47.000000000 -0400
+++ shadow/68888.tmp.7661 2004-10-28 10:05:47.000000000 -0400
@@ -0,0 +1,87 @@
+Bug#: 68888
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastien@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: HEAD regression when reflecting on a private interface
+
+Description of Problem:
+
+Reflecting on an private interface doesn't work.
+
+
+Steps to reproduce the problem:
+1. Compile the following code with MCS
+
+using System;
+
+using System.Reflection;
+
+using System.Security;
+
+using System.Security.Permissions;
+
+
+public class Program {
+
+ static void Main ()
+ {
+ SecurityPermission p = new SecurityPermission (PermissionState.None);
+ Type t = p.GetType ();
+
+ int result = (int) t.InvokeMember (
+ "System.Security.Permissions.IBuiltInPermission.GetTokenIndex",
+
+ BindingFlags.InvokeMethod | BindingFlags.NonPublic |
+ BindingFlags.Instance, null, p, null);
+
+ Console.WriteLine ("{0} = {1}", t, result);
+
+ }
+
+}
+
+2. Execute the binary with Mono (CVS HEAD)
+3. Execute the binary with Mono (CVS branch MONO-1-0)
+4. Execute the binary with MS runtime
+
+
+Actual Results (HEAD):
+
+Unhandled Exception: System.MissingMethodException: Cannot find the
+requested method.
+in <0x0093a> System.MonoType:InvokeMember
+(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[],System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[])
+in <0x0002b> System.Type:InvokeMember
+(string,System.Reflection.BindingFlags,System.Reflection.Binder,object,object[])
+in <0x00053> Program:Main ()
+
+
+
+Expected Results (MONO-1-0 branch and MS runtime):
+
+System.Security.Permissions.SecurityPermission = 6
+
+
+How often does this happen?
+Always (with HEAD)
+
+
+Additional Information:
+
+* This makes all tests in corlib's
+System.Security.Permissions.IBuiltInPermissionTest fails.
+
+* This used to work on Mono (when the IBuiltInPermissionTest tests where
+checked-in).