[Mono-bugs] [Bug 651493] New: EnsureLocalDisposalRule is missing some defects
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 4 16:50:02 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=651493
https://bugzilla.novell.com/show_bug.cgi?id=651493#c0
Summary: EnsureLocalDisposalRule is missing some defects
Classification: Mono
Product: Mono: Tools
Version: 2.8.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Gendarme
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: avandecreme at sopragroup.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12
If the IDisposable object is not stored at all in a variable, the rule don't
detect it.
Reproducible: Always
Steps to Reproduce:
1. Add this test cases :
void Failure7 ()
{
new XmlTextReader ("foo.xml");
}
void Failure8 ()
{
XslCompiledTransform xslt = new XslCompiledTransform ();
xslt.Load (new XmlTextReader ("foo.xml"));
}
Actual Results:
No defect
Expected Results:
2 defects, the XmlTextReaders are never disposed
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list