[Mono-bugs] [Bug 667325] TypesWithDisposableFieldsShouldBeDisposableRule doesn't detect fields which are instantiated with a ctor of a more derived class than its compile time type

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Apr 9 12:04:29 EDT 2011



Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                     |Added
                 CC|                            |spouliot at novell.com
           Severity|Normal                      |Enhancement

--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2011-04-09 16:04:28 UTC ---
That would have a huge cost since the would need to check all [1] field
assignation and check if the type is IDisposable [2]. 

I don't know if that situation is very common - but there's no better way to
answer that than to try it :-) Patches are welcome [3][4]

[1] right now we're filtering on IDisposable fields
[2] right now we can assume they are since it's a IDisposable field
[3] you may wish to let me fix other known issues (e.g. #671029) first
[4] it's more likely to be acceptable if implemented as an optional "deep" mode

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