[Mono-bugs] [Bug 477447] Exception thrown while compiling code with nested anonymous delegates containing closures

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 19 15:26:59 EST 2009


User dmitchell at logos.com added comment

David Mitchell <dmitchell at logos.com> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW
      Info Provider|dmitchell at logos.com         |

--- Comment #2 from David Mitchell <dmitchell at logos.com>  2009-02-19 13:26:57 MST ---
Created an attachment (id=274072)
 --> (https://bugzilla.novell.com/attachment.cgi?id=274072)
Proposed patch for the bug

I am still unable to create a concise test case that exposes this bug, but I
have supplied a patch that fixes the issue.

It seems that, in certain cases, an AnonymousMethodStorey used by an anonymous
delegate may not always be available in the AnonymousMethodStorey associated
with that delegate. The attached patch detects this situation and attempts to
compose an expression that accesses the desired AnonymousMethodStorey

I know that it may be a tough sell to get code committed for which no test case
can be supplied, but a review of my patch should reveal that the only code
paths affected are those in which the compiler would have crashed, anyway, so
there shouldn't be much danger in applying it.

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