Author: lluis
Date: 2005-05-25 05:31:53 -0400 (Wed, 25 May 2005)
New Revision: 44982

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/reflection.c
Log:
2005-05-25  Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * reflection.c: Update the table_idx field of method builders after
        saving the module, since it can change. This is a workaround for
        bug #74914. 



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-05-25 08:29:39 UTC (rev 44981)
+++ trunk/mono/mono/metadata/ChangeLog  2005-05-25 09:31:53 UTC (rev 44982)
@@ -1,3 +1,9 @@
+2005-05-25  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * reflection.c: Update the table_idx field of method builders after
+       saving the module, since it can change. This is a workaround for
+       bug #74914. 
+
 2005-05-25  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * culture-info-table.h : update (additional French date format).

Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c       2005-05-25 08:29:39 UTC (rev 
44981)
+++ trunk/mono/mono/metadata/reflection.c       2005-05-25 09:31:53 UTC (rev 
44982)
@@ -1373,6 +1373,7 @@
        reflection_methodbuilder_from_method_builder (&rmb, mb);
 
        mono_image_basic_method (&rmb, assembly);
+       mb->table_idx = *rmb.table_idx;
 
        if (mb->dll) { /* It's a P/Invoke method */
                guint32 moduleref;
@@ -1449,6 +1450,7 @@
        reflection_methodbuilder_from_ctor_builder (&rmb, mb);
 
        mono_image_basic_method (&rmb, assembly);
+       mb->table_idx = *rmb.table_idx;
 }
 
 static char*

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

Reply via email to