Author: jbevain
Date: 2007-09-28 13:58:49 -0400 (Fri, 28 Sep 2007)
New Revision: 86594
Modified:
trunk/mono/mono/metadata/ChangeLog
trunk/mono/mono/metadata/reflection.c
Log:
2007-09-28 Jb Evain <[EMAIL PROTECTED]>
* reflection.c: when encoding type names in custom attributes,
if the type is a closed generic type, its generic arguments
have to be serialized as AssemblyQualifiedName, so that when
they are deserialized, it's possible to re-create them properly.
Fixes #329450.
Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog 2007-09-28 17:56:19 UTC (rev 86593)
+++ trunk/mono/mono/metadata/ChangeLog 2007-09-28 17:58:49 UTC (rev 86594)
@@ -1,4 +1,12 @@
+2007-09-28 Jb Evain <[EMAIL PROTECTED]>
+ * reflection.c: when encoding type names in custom attributes,
+ if the type is a closed generic type, its generic arguments
+ have to be serialized as AssemblyQualifiedName, so that when
+ they are deserialized, it's possible to re-create them properly.
+ Fixes #329450.
+
+
Fri Sep 28 19:19:49 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
* object.c, class-internals.h: added delegate-creation counter.
Modified: trunk/mono/mono/metadata/reflection.c
===================================================================
--- trunk/mono/mono/metadata/reflection.c 2007-09-28 17:56:19 UTC (rev
86593)
+++ trunk/mono/mono/metadata/reflection.c 2007-09-28 17:58:49 UTC (rev
86594)
@@ -1561,8 +1561,12 @@
if (!klass)
return mono_type_get_name_full (type,
MONO_TYPE_NAME_FORMAT_REFLECTION);
ta = klass->image->assembly;
- if (ta->dynamic || (ta == ass))
- return mono_type_get_name_full (type,
MONO_TYPE_NAME_FORMAT_REFLECTION);
+ if (ta->dynamic || (ta == ass)) {
+ if (klass->generic_class)
+ return mono_type_get_name_full (type,
MONO_TYPE_NAME_FORMAT_FULL_NAME);
+ else
+ return mono_type_get_name_full (type,
MONO_TYPE_NAME_FORMAT_REFLECTION);
+ }
return mono_type_get_name_full (type,
MONO_TYPE_NAME_FORMAT_ASSEMBLY_QUALIFIED);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches