Author: marek
Date: 2005-04-01 09:09:39 -0500 (Fri, 01 Apr 2005)
New Revision: 42461
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/class.cs
Log:
2005-04-01 Marek Safar <[EMAIL PROTECTED]>
Fix #74241
* class.cs (Event.Emit): Call Add/Remove emit even for interfaces.
Attributes are emitted there.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-04-01 13:22:09 UTC (rev 42460)
+++ trunk/mcs/mcs/ChangeLog 2005-04-01 14:09:39 UTC (rev 42461)
@@ -1,3 +1,9 @@
+2005-04-01 Marek Safar <[EMAIL PROTECTED]>
+
+ Fix #74241
+ * class.cs (Event.Emit): Call Add/Remove emit even for interfaces.
+ Attributes are emitted there.
+
2005-04-01 Raja R Harinath <[EMAIL PROTECTED]>
* cs-tokenizer.cs (consume_identifier): Treat 'partial' as a
Modified: trunk/mcs/mcs/class.cs
===================================================================
--- trunk/mcs/mcs/class.cs 2005-04-01 13:22:09 UTC (rev 42460)
+++ trunk/mcs/mcs/class.cs 2005-04-01 14:09:39 UTC (rev 42461)
@@ -6748,6 +6748,9 @@
return;
}
+ if ((method.ModFlags & (Modifiers.ABSTRACT |
Modifiers.EXTERN)) != 0)
+ return;
+
ILGenerator ig =
method_data.MethodBuilder.GetILGenerator ();
FieldInfo field_info =
(FieldInfo)method.FieldBuilder;
@@ -6952,10 +6955,8 @@
OptAttributes.Emit (ec, this);
}
- if (!IsInterface) {
- Add.Emit (Parent);
- Remove.Emit (Parent);
- }
+ Add.Emit (Parent);
+ Remove.Emit (Parent);
base.Emit ();
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches