Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2004-08-26 18:40:19 +0400
committerSebastien Pouliot <sebastien@ximian.com>2004-08-26 18:40:19 +0400
commita8a8fd41cbb8f49f182825a04efb1970557deede (patch)
tree6fa9a36a18c0a6f85637979373d448176a7216e2 /mcs/class/corlib/System.Security/SecurityManager.cs
parentcbfc655c0663e071e024cc507fb9eaaa95e99182 (diff)
2004-08-26 Sebastien Pouliot <sebastien@ximian.com>
* SecurityElement.cs: Fixed the new Copy() in Fx 2.0 as it isn't a deep copy. Throw proper exceptions in FromString (Fx 2.0). * SecurityManager.cs: Throw a NullReference exception in SavePolicyLevel as MS won't fix it (FDBK13121). svn path=/trunk/mcs/; revision=32884
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityManager.cs')
-rw-r--r--mcs/class/corlib/System.Security/SecurityManager.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityManager.cs b/mcs/class/corlib/System.Security/SecurityManager.cs
index e5949ae1891..b568533c73d 100644
--- a/mcs/class/corlib/System.Security/SecurityManager.cs
+++ b/mcs/class/corlib/System.Security/SecurityManager.cs
@@ -262,9 +262,7 @@ namespace System.Security {
[SecurityPermission (SecurityAction.Demand, Flags=SecurityPermissionFlag.ControlPolicy)]
public static void SavePolicyLevel (PolicyLevel level)
{
- // throw a SecurityException if we don't have ControlPolicy permission
-// MS BUG if (level == null)
-// throw new ArgumentNullException ("level");
+ // Yes this will throw a NullReferenceException, just like MS (see FDBK13121)
level.Save ();
}