Author: zoltan
Date: 2005-03-10 10:19:01 -0500 (Thu, 10 Mar 2005)
New Revision: 41646

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/reflection.c
Log:
2005-03-10  Zoltan Varga  <[EMAIL PROTECTED]>

        * reflection.c (mono_reflection_create_runtime_class): Remove the
        AssemblyBuilder.Save optimization since it causes too many problems.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-03-10 13:25:35 UTC (rev 41645)
+++ trunk/mono/mono/metadata/ChangeLog  2005-03-10 15:19:01 UTC (rev 41646)
@@ -1,3 +1,8 @@
+2005-03-10  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * reflection.c (mono_reflection_create_runtime_class): Remove the
+       AssemblyBuilder.Save optimization since it causes too many problems.
+
 2005-03-10  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * exception.c|h: Added mono_get_exception_reflection_type_load to

Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c       2005-03-10 13:25:35 UTC (rev 
41645)
+++ trunk/mono/mono/metadata/reflection.c       2005-03-10 15:19:01 UTC (rev 
41646)
@@ -8480,6 +8480,10 @@
                for (i = 0; i < klass->method.count; ++i)
                        klass->methods [i]->slot = i;
 
+       if (!((MonoDynamicImage*)klass->image)->run)
+               /* No need to create a generic vtable */
+               return;
+
        /* Overrides */
        onum = 0;
        if (tb->methods) {
@@ -8682,10 +8686,6 @@
        klass->has_cctor = 1;
        klass->has_finalize = 1;
 
-       if (!((MonoDynamicImage*)(MonoDynamicImage*)klass->image)->run)
-               /* No need to fully construct the type */
-               return mono_type_get_object (mono_object_domain (tb), 
&klass->byval_arg);
-
        /* enums are done right away */
        if (!klass->enumtype)
                ensure_runtime_vtable (klass);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to