Author: spouliot
Date: 2005-03-30 14:07:50 -0500 (Wed, 30 Mar 2005)
New Revision: 42383
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/attribute.cs
Log:
2005-03-30 Sebastien Pouliot <[EMAIL PROTECTED]>
* attribute.cs: Fix the union of several permissions when some of them
are unrestricted (so the result isn't an unrestricted permission set).
Fix #74036.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-03-30 18:52:18 UTC (rev 42382)
+++ trunk/mcs/mcs/ChangeLog 2005-03-30 19:07:50 UTC (rev 42383)
@@ -1,3 +1,9 @@
+2005-03-30 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * attribute.cs: Fix the union of several permissions when some of them
+ are unrestricted (so the result isn't an unrestricted permission set).
+ Fix #74036.
+
2005-03-30 Raja R Harinath <[EMAIL PROTECTED]>
* ecore.cs (MemberExpr): New class. Convert from interface
Modified: trunk/mcs/mcs/attribute.cs
===================================================================
--- trunk/mcs/mcs/attribute.cs 2005-03-30 18:52:18 UTC (rev 42382)
+++ trunk/mcs/mcs/attribute.cs 2005-03-30 19:07:50 UTC (rev 42383)
@@ -849,7 +849,7 @@
ps = new PermissionSet
(PermissionState.None);
permissions.Add (action, ps);
- } else if (!ps.IsUnrestricted () && sa.Unrestricted) {
+ } else if (!ps.IsUnrestricted () && (sa is
PermissionSetAttribute) && sa.Unrestricted) {
ps = ps.Union (new PermissionSet
(PermissionState.Unrestricted));
permissions [action] = ps;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches