Author: marek
Date: 2005-03-31 09:34:55 -0500 (Thu, 31 Mar 2005)
New Revision: 42431
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/class.cs
trunk/mcs/mcs/decl.cs
Log:
2005-03-31 Marek Safar <[EMAIL PROTECTED]>
Fix #74241
* class.cs (AbstractPropertyEventMethod.EmitMethod): Enable emit method
customization.
* decl.cs (MemberCache.AddMethods): Fix infinite loop.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2005-03-31 14:25:57 UTC (rev 42430)
+++ trunk/mcs/mcs/ChangeLog 2005-03-31 14:34:55 UTC (rev 42431)
@@ -1,3 +1,11 @@
+2005-03-31 Marek Safar <[EMAIL PROTECTED]>
+
+ Fix #74241
+ * class.cs (AbstractPropertyEventMethod.EmitMethod): Enable emit method
+ customization.
+
+ * decl.cs (MemberCache.AddMethods): Fix infinite loop.
+
2005-03-31 Raja R Harinath <[EMAIL PROTECTED]>
Fix difference in behaviour with commandline invocation.
Modified: trunk/mcs/mcs/class.cs
===================================================================
--- trunk/mcs/mcs/class.cs 2005-03-31 14:25:57 UTC (rev 42430)
+++ trunk/mcs/mcs/class.cs 2005-03-31 14:34:55 UTC (rev 42431)
@@ -5785,7 +5785,7 @@
public virtual void Emit (TypeContainer container)
{
- method_data.Emit (container, this);
+ EmitMethod (container);
if (declarative_security != null) {
foreach (DictionaryEntry de in
declarative_security) {
@@ -5796,6 +5796,11 @@
block = null;
}
+ protected virtual void EmitMethod (TypeContainer container)
+ {
+ method_data.Emit (container, this);
+ }
+
public override bool IsClsCompliaceRequired(DeclSpace ds)
{
return false;
@@ -6736,10 +6741,10 @@
}
- public override void Emit (TypeContainer tc)
+ protected override void EmitMethod (TypeContainer tc)
{
if (block != null) {
- base.Emit (tc);
+ base.EmitMethod (tc);
return;
}
Modified: trunk/mcs/mcs/decl.cs
===================================================================
--- trunk/mcs/mcs/decl.cs 2005-03-31 14:25:57 UTC (rev 42430)
+++ trunk/mcs/mcs/decl.cs 2005-03-31 14:34:55 UTC (rev 42431)
@@ -1456,6 +1456,7 @@
" but doesn't
appear to overrided any virtual or abstract method:" +
" it may be
ignored during overload resolution",
TypeManager.CSharpSignature (base_method));
+ break;
}
base_method = new_base_method;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches