Author: jbevain
Date: 2008-01-03 08:05:56 -0500 (Thu, 03 Jan 2008)
New Revision: 92168

Modified:
   trunk/mcs/class/Mono.Cecil/ChangeLog
   trunk/mcs/class/Mono.Cecil/Mono.Cecil/ReflectionWriter.cs
Log:
2008-01-03  Jb Evain  <[EMAIL PROTECTED]>

        * Mono.Cecil/ReflectionWriter.cs:
                Properly emit null type constants. Fix #351141.
                Patch by Rolf Kvinge <[EMAIL PROTECTED]>.


Modified: trunk/mcs/class/Mono.Cecil/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Cecil/ChangeLog        2008-01-03 12:42:31 UTC (rev 
92167)
+++ trunk/mcs/class/Mono.Cecil/ChangeLog        2008-01-03 13:05:56 UTC (rev 
92168)
@@ -1,3 +1,9 @@
+2008-01-03  Jb Evain  <[EMAIL PROTECTED]>
+
+       * Mono.Cecil/ReflectionWriter.cs:
+               Properly emit null type constants. Fix #351141.
+               Patch by Rolf Kvinge <[EMAIL PROTECTED]>.
+
 2007-12-30  Jb Evain  <[EMAIL PROTECTED]>
 
        * Mono.Cecil.Cil/CilWorker.cs:

Modified: trunk/mcs/class/Mono.Cecil/Mono.Cecil/ReflectionWriter.cs
===================================================================
--- trunk/mcs/class/Mono.Cecil/Mono.Cecil/ReflectionWriter.cs   2008-01-03 
12:42:31 UTC (rev 92167)
+++ trunk/mcs/class/Mono.Cecil/Mono.Cecil/ReflectionWriter.cs   2008-01-03 
13:05:56 UTC (rev 92168)
@@ -682,7 +682,7 @@
                        } else
                                et = GetCorrespondingType (type.FullName);
 
-                       if (et == ElementType.Object)
+                       if (et == ElementType.Object || et == ElementType.Type)
                                et = hc.Constant == null ?
                                        ElementType.Class :
                                        GetCorrespondingType 
(hc.Constant.GetType ().FullName);

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

Reply via email to