[Mono-bugs] [Bug 45993][Maj] New - ModuleBuilder.GetType("String[]") returns a type from the currently loaded corlib

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 8 Jul 2003 16:30:37 -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 ravi@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=45993

--- shadow/45993	Tue Jul  8 16:30:36 2003
+++ shadow/45993.tmp.14596	Tue Jul  8 16:30:36 2003
@@ -0,0 +1,43 @@
+Bug#: 45993
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ravi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ModuleBuilder.GetType("String[]") returns a type from the currently loaded corlib
+
+Description of Problem:
+
+When compiling the corlib using mcs, ModuleBuilder.GetType ("string[]")
+returns a Type object from the currently loaded corlib instead of returning
+one from the corlib being built. 
+
+Steps to reproduce the problem:
+1. Setup a debug message in mcs/typemanager.cs :
+TypeManager.LookupTypeReflection to print out of the location of the type
+(t.Assembly.Location) after ModuleBuilder.GetType returns it.
+
+2. Compile corlib with mcs
+
+Actual Results:
+
+You should see that the output from the debug statement contains something
+like "/export/tmp/ravip/install/lib/corlib.dll" (the installed/loaded corlib) 
+
+Expected Results:
+
+Blank or "" 
+
+How often does this happen? 
+
+Always