Author: raja
Date: 2007-06-10 04:18:32 -0400 (Sun, 10 Jun 2007)
New Revision: 79110
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/reflection.c
Log:
* reflection.c (mono_class_bind_generic_parameters): Only support
parameterizing generic type definitions. Remove support for other
open types.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2007-06-10 07:38:07 UTC (rev 79109)
+++ trunk/mono/mono/metadata/ChangeLog 2007-06-10 08:18:32 UTC (rev 79110)
@@ -1,3 +1,9 @@
+2007-06-10 Raja R Harinath <[EMAIL PROTECTED]>
+
+ * reflection.c (mono_class_bind_generic_parameters): Only support
+ parameterizing generic type definitions. Remove support for other
+ open types.
+
2007-06-08 Zoltan Varga <[EMAIL PROTECTED]>
* loader.c (mono_free_method): Free method->signature as well. Fixes
#81832.
Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c 2007-06-10 07:38:07 UTC (rev
79109)
+++ trunk/mono/mono/metadata/reflection.c 2007-06-10 08:18:32 UTC (rev
79110)
@@ -8795,8 +8795,7 @@
int i;
klass = mono_class_from_mono_type (type);
- if (!klass->generic_container && !klass->generic_class &&
- !(klass->nested_in && klass->nested_in->generic_container))
+ if (!klass->generic_container)
return NULL;
mono_loader_lock ();
@@ -8823,16 +8822,6 @@
gclass->container_class = klass;
- if (klass->generic_class) {
- MonoGenericClass *kgclass = klass->generic_class;
- MonoGenericClass *ogclass = gclass;
-
- gclass = g_new0 (MonoGenericClass, 1);
-
- gclass->container_class = kgclass->container_class;
- gclass->inst = mono_metadata_inflate_generic_inst
(kgclass->inst, mono_generic_class_get_context (ogclass));
- }
-
geninst = g_new0 (MonoType, 1);
geninst->type = MONO_TYPE_GENERICINST;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches