https://bugzilla.novell.com/show_bug.cgi?id=354757
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=354757#c1 Rodrigo Kumpera <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[EMAIL PROTECTED] AssignedTo|[email protected] |[EMAIL PROTECTED] --- Comment #1 from Rodrigo Kumpera <[EMAIL PROTECTED]> 2008-01-18 19:18:51 MST --- This bug is due to the way instances of MethodBuilder are inflated when MonoGenericType::initialize is called. The issue is that we try to inflate generic methods when we are inflating the generic type. This doesn't make any sense as no inflation should be done at all. Aplying the diff below fixes it. I need to test it a lot before considering this a proper fix. Index: metadata/reflection.c =================================================================== --- metadata/reflection.c (revision 93177) +++ metadata/reflection.c (working copy) @@ -9013,14 +9015,6 @@ g_assert (klass->generic_class); context = mono_class_get_context (klass); - if (method->generic_container) { - g_assert (method->klass == klass->generic_class->container_class); - - tmp_context.class_inst = klass->generic_class->context.class_inst; - tmp_context.method_inst = method->generic_container->context.method_inst; - context = &tmp_context; - } - imethod = (MonoMethodInflated *) mono_class_inflate_generic_method_full (method, klass, context); if (method->generic_container) { MOVING_GC_REGISTER (&imethod->reflection_info); -- 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
