Author: lluis
Date: 2006-05-12 06:07:28 -0400 (Fri, 12 May 2006)
New Revision: 60617

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/object.c
Log:
2006-05-12  Lluis Sanchez  <[EMAIL PROTECTED]>

        * object.c: The FieldGetter and FieldSetter methods require the full
        name of the class, not only the name. Fixes bug #78277.



Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2006-05-12 09:54:22 UTC (rev 60616)
+++ trunk/mono/mono/metadata/ChangeLog  2006-05-12 10:07:28 UTC (rev 60617)
@@ -1,3 +1,8 @@
+2006-05-12  Lluis Sanchez  <[EMAIL PROTECTED]>
+
+       * object.c: The FieldGetter and FieldSetter methods require the full
+       name of the class, not only the name. Fixes bug #78277.
+
 2006-05-11  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * assembly.c (mono_assembly_load_from_full): Fix a bunch of warnings.

Modified: trunk/mono/mono/metadata/object.c
===================================================================
--- trunk/mono/mono/metadata/object.c   2006-05-12 09:54:22 UTC (rev 60616)
+++ trunk/mono/mono/metadata/object.c   2006-05-12 10:07:28 UTC (rev 60617)
@@ -3890,6 +3890,7 @@
        MonoMethodMessage *msg;
        MonoArray *out_args;
        MonoObject *exc;
+       char* full_name;
 
        g_assert (this->vtable->klass == mono_defaults.transparent_proxy_class);
        g_assert (res != NULL);
@@ -3910,8 +3911,10 @@
        out_args = mono_array_new (domain, mono_defaults.object_class, 1);
        mono_message_init (domain, msg, mono_method_get_object (domain, getter, 
NULL), out_args);
 
-       mono_array_setref (msg->args, 0, mono_string_new (domain, klass->name));
+       full_name = mono_type_get_full_name (klass);
+       mono_array_setref (msg->args, 0, mono_string_new (domain, full_name));
        mono_array_setref (msg->args, 1, mono_string_new (domain, field->name));
+       g_free (full_name);
 
        mono_remoting_invoke ((MonoObject *)(tp->rp), msg, &exc, &out_args);
 
@@ -3946,6 +3949,7 @@
        MonoMethodMessage *msg;
        MonoArray *out_args;
        MonoObject *exc, *res;
+       char* full_name;
 
        g_assert (this->vtable->klass == mono_defaults.transparent_proxy_class);
 
@@ -3973,8 +3977,10 @@
 
        mono_message_init (domain, msg, mono_method_get_object (domain, getter, 
NULL), out_args);
 
-       mono_array_setref (msg->args, 0, mono_string_new (domain, klass->name));
+       full_name = mono_type_get_full_name (klass);
+       mono_array_setref (msg->args, 0, mono_string_new (domain, full_name));
        mono_array_setref (msg->args, 1, mono_string_new (domain, field->name));
+       g_free (full_name);
 
        mono_remoting_invoke ((MonoObject *)(tp->rp), msg, &exc, &out_args);
 
@@ -4010,6 +4016,7 @@
        MonoArray *out_args;
        MonoObject *exc;
        MonoObject *arg;
+       char* full_name;
 
        g_assert (this->vtable->klass == mono_defaults.transparent_proxy_class);
 
@@ -4035,9 +4042,11 @@
        msg = (MonoMethodMessage *)mono_object_new (domain, 
mono_defaults.mono_method_message_class);
        mono_message_init (domain, msg, mono_method_get_object (domain, setter, 
NULL), NULL);
 
-       mono_array_setref (msg->args, 0, mono_string_new (domain, klass->name));
+       full_name = mono_type_get_full_name (klass);
+       mono_array_setref (msg->args, 0, mono_string_new (domain, full_name));
        mono_array_setref (msg->args, 1, mono_string_new (domain, field->name));
        mono_array_setref (msg->args, 2, arg);
+       g_free (full_name);
 
        mono_remoting_invoke ((MonoObject *)(tp->rp), msg, &exc, &out_args);
 
@@ -4063,6 +4072,7 @@
        MonoMethodMessage *msg;
        MonoArray *out_args;
        MonoObject *exc;
+       char* full_name;
 
        g_assert (this->vtable->klass == mono_defaults.transparent_proxy_class);
 
@@ -4082,9 +4092,11 @@
        msg = (MonoMethodMessage *)mono_object_new (domain, 
mono_defaults.mono_method_message_class);
        mono_message_init (domain, msg, mono_method_get_object (domain, setter, 
NULL), NULL);
 
-       mono_array_setref (msg->args, 0, mono_string_new (domain, klass->name));
+       full_name = mono_type_get_full_name (klass);
+       mono_array_setref (msg->args, 0, mono_string_new (domain, full_name));
        mono_array_setref (msg->args, 1, mono_string_new (domain, field->name));
        mono_array_setref (msg->args, 2, arg);
+       g_free (full_name);
 
        mono_remoting_invoke ((MonoObject *)(tp->rp), msg, &exc, &out_args);
 

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

Reply via email to