[Mono-dev] Patch for Bugzilla bug #475860

David Mitchell dmitchell at logos.com
Wed Feb 18 13:11:06 EST 2009

Attached is a patch to address
http://bugzilla.novell.com/show_bug.cgi?id=475860. I would appreciate it if
someone would review/commit it (it¹s also attached directly to the bug).

I determined that the error was occurring because child classes were being
defined in the compiler before their base classes (this, in turn, was
happening because the base class referred to the child classes in generic
parameters to the interfaces it implemented). Because of this, the HashTable
that keeps track of method overrides was not being appropriately populated,
and method overload resolution would fail in certain cases.

The attached patch ensures that no MemberCache (which is responsible for
populating the HashTable) is created for a class before its parent class has
been defined. It not only works for the test case attached to the bug, but
also for a much larger internal project with a pretty comprehensive test

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090218/47364398/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug475860.patch
Type: application/octet-stream
Size: 602 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090218/47364398/attachment-0001.obj 

More information about the Mono-devel-list mailing list