2003-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 13 May 2003 15:47:03 +0000 (15:47 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Tue, 13 May 2003 15:47:03 +0000 (15:47 -0000)
* Assembly.cs: fixed bug #42833.

svn path=/trunk/mcs/; revision=14543

mcs/class/corlib/System.Reflection/Assembly.cs
mcs/class/corlib/System.Reflection/ChangeLog

index 95d08d4a66efed3a6e02ae44237060995f1da9c0..de721f7c48a8a1691aa080a497691f0ab03205a5 100644 (file)
@@ -335,7 +335,10 @@ namespace System.Reflection {
 
                public Object CreateInstance (String typeName, Boolean ignoreCase)
                {
-                       Type t = GetType (typeName, true, ignoreCase);
+                       Type t = GetType (typeName, false, ignoreCase);
+                       if (t == null)
+                               return null;
+
                        return Activator.CreateInstance (t);
                }
 
@@ -344,7 +347,10 @@ namespace System.Reflection {
                                              Object[] args, CultureInfo culture,
                                              Object[] activationAttributes)
                {
-                       Type t = GetType (typeName, true, ignoreCase);
+                       Type t = GetType (typeName, false, ignoreCase);
+                       if (t == null)
+                               return null;
+
                        return Activator.CreateInstance (t, bindingAttr, binder, args, culture, activationAttributes);
                }
 
index bc5813e290375e745627b51116604ae58c67c7f5..a7a024a20980e5d9c76bf10cb958f692c803aea1 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Assembly.cs: fixed bug #42833.
+
 2003-05-11  Miguel de Icaza  <miguel@ximian.com>
 
        * Binder.cs (ChangeType): Very simplistic change.  Am not sure if