Author: mprobst
Date: 2007-09-11 14:17:29 -0400 (Tue, 11 Sep 2007)
New Revision: 85651
Modified:
trunk/mcs/class/corlib/System.Reflection/ChangeLog
trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs
Log:
2007-09-11 Mark Probst <[EMAIL PROTECTED]>
* MonoMethod.cs: Catch and re-throw MethodAccessException from
InternalInvoke for CoreCLR security.
Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog 2007-09-11 18:15:08 UTC
(rev 85650)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog 2007-09-11 18:17:29 UTC
(rev 85651)
@@ -1,4 +1,8 @@
+2007-09-11 Mark Probst <[EMAIL PROTECTED]>
+ * MonoMethod.cs: Catch and re-throw MethodAccessException from
+ InternalInvoke for CoreCLR security.
+
Thu Sep 6 19:49:34 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
* MonoMethod.cs: name is used as a cache: provide an icall to get the
Modified: trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs 2007-09-11
18:15:08 UTC (rev 85650)
+++ trunk/mcs/class/corlib/System.Reflection/MonoMethod.cs 2007-09-11
18:17:29 UTC (rev 85651)
@@ -155,6 +155,10 @@
} catch (ThreadAbortException) {
throw;
#endif
+#if NET_2_1
+ } catch (MethodAccessException) {
+ throw;
+#endif
} catch (Exception e) {
throw new TargetInvocationException (e);
}
@@ -398,6 +402,10 @@
throw;
} catch (TargetException) {
throw;
+#if NET_2_1
+ } catch (MethodAccessException) {
+ throw;
+#endif
} catch (Exception e) {
throw new TargetInvocationException (e);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches