[Mono-bugs] [Bug 559663] New: finalize not called on the instance assigned to static field. .NET difference
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Dec 1 15:51:32 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=559663
http://bugzilla.novell.com/show_bug.cgi?id=559663#c0
Summary: finalize not called on the instance assigned to static
field. .NET difference
Classification: Mono
Product: Mono: Runtime
Version: SVN
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Major
Priority: P5 - None
Component: GC
AssignedTo: lupus at novell.com
ReportedBy: tom_hindle at sil.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=330346)
--> (http://bugzilla.novell.com/attachment.cgi?id=330346)
Simple test case shows .NET and mono difference - ~MainClass Destructor not
called.
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5)
Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5
Consider this code snippet:
static MainClass o;
static MainClass()
{
o = new MainClass();
}
finalize is not called on instance assigned to o.
Reproducible: Always
Steps to Reproduce:
1. Compile and Run Attached test case
2.
3.
Actual Results:
static MainClass
Expected Results:
static MainClass
~MainClass
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list