[Mono-bugs] [Bug 60459][Nor] New - mcs always emits events with specialname attribute
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 19 Jun 2004 03:36:18 -0400 (EDT)
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 gert.driesen@pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=60459
--- shadow/60459 2004-06-19 03:36:18.000000000 -0400
+++ shadow/60459.tmp.8332 2004-06-19 03:36:18.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 60459
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gert.driesen@pandora.be
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs always emits events with specialname attribute
+
+mcs always seems to emit events with specialname and rtspecialname
+attributes.
+
+build and run the following code on mcs and csc :
+
+using System;
+using System.Reflection;
+
+public class EntryPoint
+{
+ public static void Main ()
+ {
+ Type type = typeof(EventTestClass);
+ EventInfo elapsedEvent = type.GetEvent ("Elapsed");
+ Console.WriteLine ("Attributes: "
+ + elapsedEvent.Attributes.ToString());
+ Console.WriteLine ("IsSpecialName: "
+ + elapsedEvent.IsSpecialName);
+ }
+}
+
+public class EventTestClass {
+ public event EventHandler Elapsed;
+}
+
+On MS.NET (with the exe compiled by csc) , you'll get the following
+output :
+
+Attributes: None
+IsSpecialName: False
+
+On Mono, you get :
+
+Attributes: SpecialName, ReservedMask
+IsSpecialName: True
+
+The ReservedMask attribute value is another (submitted) bug, but this is
+not relevant here.