Author: marek
Date: 2007-10-05 11:50:31 -0400 (Fri, 05 Oct 2007)
New Revision: 86992
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/expression.cs
Log:
2007-10-05 Marek Safar <[EMAIL PROTECTED]>
A fix for bug #325534
* class.cs (Invocation.DoResolve): Check invocation of object finalizer
only.
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-10-05 15:38:52 UTC (rev 86991)
+++ trunk/mcs/mcs/ChangeLog 2007-10-05 15:50:31 UTC (rev 86992)
@@ -1,5 +1,11 @@
2007-10-05 Marek Safar <[EMAIL PROTECTED]>
+ A fix for bug #325534
+ * class.cs (Invocation.DoResolve): Check invocation of object finalizer
+ only.
+
+2007-10-05 Marek Safar <[EMAIL PROTECTED]>
+
A fix for bug #327504
* class.cs (Operator.Define): Refactored implicit and explicit user
operator conversion rules.
Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2007-10-05 15:38:52 UTC (rev 86991)
+++ trunk/mcs/mcs/expression.cs 2007-10-05 15:50:31 UTC (rev 86992)
@@ -4523,7 +4523,7 @@
return null;
}
- if (Arguments == null && method.Name == "Finalize") {
+ if (Arguments == null && method.DeclaringType ==
TypeManager.object_type && method.Name == "Finalize") {
if (mg.IsBase)
Report.Error (250, loc, "Do not
directly call your base class Finalize method. It is called automatically from
your destructor");
else
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches