From c22f6084910c6e33788c887e397030181d0287ed Mon Sep 17 00:00:00 2001 From: Rodrigo Kumpera Date: Fri, 29 Oct 2010 14:00:25 -0200 Subject: [PATCH] Make GetGenericTypeDefinitionImpl not init the class. * icall.c (ves_icall_Type_GetGenericTypeDefinition_impl): Don't mono_class_init the type. Fixes test-792. --- mono/metadata/icall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mono/metadata/icall.c b/mono/metadata/icall.c index 2f9a3b4286d..72435c5de00 100644 --- a/mono/metadata/icall.c +++ b/mono/metadata/icall.c @@ -2388,7 +2388,6 @@ ves_icall_Type_GetGenericTypeDefinition_impl (MonoReflectionType *type) return NULL; klass = mono_class_from_mono_type (type->type); - mono_class_init_or_throw (klass); if (klass->generic_container) { return type; /* check this one */ -- 2.11.4.GIT