[Mono-devel-list] Updated CAS patch for LinkDemand

Sebastien Pouliot sebastien at ximian.com
Thu Feb 10 09:31:29 EST 2005


Hello,

This is an updated patch to support LinkDemand. This fixes all known
problems (the one I had before and the one I found after issuing the
patch) and also gives more details when an exception is thrown to ease
debugging.

Note: The patch for MonoMethod is removed as you can (by default) use
reflection to execute private internal calls (i.e. unless they have
other security attributes applied to them).

Updated (and new) test cases are already in SVN:
/mono/mono/tests/cas/linkdemand/

The only failing test with this patch is cas5.cs - where reflection is
used to get access to a method protected by a LinkDemand. The code to
fix this will be located in System/MonoType.cs and
System.Reflection/MonoMethod.cs in a (not so) future patch.

-- 
Sebastien Pouliot  <sebastien at ximian.com>
blog: http://pages.infinit.net/ctech/poupou.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono.20050210.diff
Type: text/x-patch
Size: 31564 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050210/84772e81/attachment.bin 


More information about the Mono-devel-list mailing list