Author: zoltan
Date: 2007-09-02 05:31:48 -0400 (Sun, 02 Sep 2007)
New Revision: 85183

Modified:
   branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/ChangeLog
   branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
Log:
2007-09-02  Zoltan Varga  <[EMAIL PROTECTED]>

        * TypeBuilder.cs: Add a workaround for #82625 to make nemerle work 
again.


Modified: branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/ChangeLog
===================================================================
--- branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/ChangeLog       
2007-09-02 09:26:38 UTC (rev 85182)
+++ branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/ChangeLog       
2007-09-02 09:31:48 UTC (rev 85183)
@@ -1,3 +1,7 @@
+2007-09-02  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * TypeBuilder.cs: Add a workaround for #82625 to make nemerle work 
again.
+
 2007-07-11  Rodrigo Kumpera <[EMAIL PROTECTED]>
 
        * TypeBuilder.cs (CreateType): method did not check for enum type with 
defined methods and fixed compatibility issue in case of calling CreateType 
again after the first one failed, it now returns null as well.

Modified: 
branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
===================================================================
--- branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs  
2007-09-02 09:26:38 UTC (rev 85182)
+++ branches/mono-1-2-5/mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs  
2007-09-02 09:31:48 UTC (rev 85183)
@@ -964,7 +964,9 @@
 
                public override FieldInfo[] GetFields (BindingFlags bindingAttr)
                {
-                       if (created != null)
+                       // FIXME: In the generic case, this leads to a crash
+                       // http://bugzilla.ximian.com/show_bug.cgi?id=82625
+                       if (!ContainsGenericParameters && (created != null))
                                return created.GetFields (bindingAttr);
 
                        if (fields == null)

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

Reply via email to