[Mono-bugs] [Bug 52156][Nor] Changed - cannot find SecurityPermissionAttribute

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 5 Jan 2004 13:38:36 -0500 (EST)


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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52156

--- shadow/52156	2004-01-05 13:12:24.000000000 -0500
+++ shadow/52156.tmp.6634	2004-01-05 13:38:36.000000000 -0500
@@ -91,6 +91,33 @@
 
 ------- Additional Comments From spouliot@videotron.ca  2004-01-05 13:12 -------
 Are you using the mono or MS runtime ?
 
 I don't think the MS runtime allows "replacing" the SecurityPermission
 for "security reasons" ;-)
+
+------- Additional Comments From bmaurer@users.sf.net  2004-01-05 13:38 -------
+sp, atsushi specifically said he was not doing this.
+
+Atsushi:
+
+Can you test that we are following this clause:
+
+`1 A class that derives from the abstract class System.Attribute, 
+whether directly or indirectly, is an attribute class. 2 The 
+declaration of an attribute class defines a new kind of attribute 
+that can be placed on a declaration. 3 By convention, attribute 
+classes are named with a suffix of Attribute. 4 Uses of an attribute 
+may either include or omit this suffix.'
+
+(note, clauses 3 and 4)
+
+So, does this work (I am stealing examples from the spec here)
+
+using System;  
+
+[AttributeUsage(AttributeTargets.Class)]  
+public class Simple: Attribute {}  
+[Simple] class Class1 { static void Main () {} }
+
+
+