[Mono-bugs] [Bug 82867][Nor] New - object.Finalize is not recognized correctly

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 14 17:49:53 EDT 2007


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 marek.safar at seznam.cz.

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

--- shadow/82867	2007-09-14 17:49:53.000000000 -0400
+++ shadow/82867.tmp.12838	2007-09-14 17:49:53.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 82867
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: object.Finalize is not recognized correctly
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+
+using System;
+
+interface I
+{
+	void Finalize ();
+}
+
+class MainClass
+{
+	void Foo (I i)
+	{
+		i.Finalize ();
+	}
+	
+	public static void Main ()
+	{
+	}
+}
+
+
+Actual Results:
+
+.cs(12,19): error CS0245: Destructors and object.Finalize cannot be called
+directly. Consider calling IDisposable.Dispose if available
+
+Expected Results:
+
+No error.
+
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list