[Mono-bugs] [Bug 543143] OpCodes.Newarr: User defined subclasses of System.Type are not yet supported
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Oct 21 09:46:48 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=543143
User rkumpera at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=543143#c1
Rodrigo Kumpera <rkumpera at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |rkumpera at novell.com
Info Provider| |msafar at novell.com
--- Comment #1 from Rodrigo Kumpera <rkumpera at novell.com> 2009-10-21 07:46:46 MDT ---
This is a well know problem. SRE doesn't really support user types.
Can you please try the following workaround:
diff --git a/class/corlib/System.Reflection.Emit/ILGenerator.cs
b/class/corlib/System.Reflection.Emit/ILGenerator.cs
index 96b61a6..c9b6a8d 100644
--- a/class/corlib/System.Reflection.Emit/ILGenerator.cs
+++ b/class/corlib/System.Reflection.Emit/ILGenerator.cs
@@ -821,6 +821,7 @@ namespace System.Reflection.Emit {
{
make_room (6);
ll_emit (opcode);
+ cls = cls.UnderlyingSystemType;
emit_int (token_gen.GetToken (cls));
}
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list