[Mono-bugs] [Bug 27850][Maj] New - Type.GetType fails for non-corlib types

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
16 Jul 2002 16:42:26 -0000


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 gonzalo@ximian.com.

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

--- shadow/27850	Tue Jul 16 12:42:26 2002
+++ shadow/27850.tmp.16154	Tue Jul 16 12:42:26 2002
@@ -0,0 +1,42 @@
+Bug#: 27850
+Product: Mono/Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type.GetType fails for non-corlib types
+
+Steps to reproduce the problem:
+1. Compile this program referencing System.Drawing
+using System;
+using System.Drawing;
+public class MyClass
+{
+        public static void Main (string [] args)
+        {
+                Type t1 = typeof (Color);
+                Type t = Type.GetType (t1.AssemblyQualifiedName);
+                if (t == null)
+                        Console.WriteLine ("Failed :(");
+                else
+                        Console.WriteLine ("Worked! :)");
+        }
+}
+
+2. Run
+
+Actual Results:
+Failed :(
+
+Expected Results:
+Worked! :)