[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


User rkumpera at novell.com added comment

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
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