[Mono-bugs] [Bug 45993][Maj] Changed - ModuleBuilder.GetType("String") returns a type from the currently loaded corlib
Mon, 21 Jul 2003 17:18:58 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by email@example.com.
--- shadow/45993 Fri Jul 18 15:50:07 2003
+++ shadow/45993.tmp.10395 Mon Jul 21 17:18:58 2003
@@ -53,6 +53,23 @@
------- Additional Comments From firstname.lastname@example.org 2003-07-18 15:50 -------
I tried it out and although this issue has been fixed, the Type
returned still has its BaseType set to System.Array from the loaded
corlib instead of it being from the corlib being compiled. If you fix
this, I think it should be it :-)
+------- Additional Comments From email@example.com 2003-07-21 17:18 -------
+Your patch did solve a lot of the problems but I found one more issue
+which you need to fix :-)
+The array type returned is from the corlib being compiled but as it
+turns out, its ElementType is set to a type from the loaded corlib! So
+inside mcs there is code which does this :
+Type element_type = array_type.GetElementType ();
+and element_type is from the loaded corlib which completely breaks us.