Skip to content

Commit

Permalink
2007-09-02 Zoltan Varga <vargaz@gmail.com>
Browse files Browse the repository at this point in the history
	* TypeBuilder.cs: Add a workaround for #82625 to make nemerle work again.

svn path=/branches/mono-1-2-5/mcs/; revision=85183
  • Loading branch information
vargaz committed Sep 2, 2007
1 parent 14f69f6 commit d0b80da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mcs/class/corlib/System.Reflection.Emit/ChangeLog
@@ -1,3 +1,7 @@
2007-09-02 Zoltan Varga <vargaz@gmail.com>

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

2007-07-11 Rodrigo Kumpera <rkumpera@novell.com>

* 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.
Expand Down
4 changes: 3 additions & 1 deletion mcs/class/corlib/System.Reflection.Emit/TypeBuilder.cs
Expand Up @@ -964,7 +964,9 @@ public override FieldInfo GetField (string name, BindingFlags bindingAttr)

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)
Expand Down

0 comments on commit d0b80da

Please sign in to comment.