2006-08-23 Lluis Sanchez Gual <lluis@novell.com>
authorLluis Sanchez <lluis@novell.com>
Wed, 23 Aug 2006 21:19:57 +0000 (21:19 -0000)
committerLluis Sanchez <lluis@novell.com>
Wed, 23 Aug 2006 21:19:57 +0000 (21:19 -0000)
* ObjRef.cs: Throw a TypeLoadException exception if the referenced
  type can't be found. That's better than a nullref.

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

mcs/class/corlib/System.Runtime.Remoting/ChangeLog
mcs/class/corlib/System.Runtime.Remoting/ObjRef.cs

index cc80a643e1930e28402a03b0b4800177c74ff170..1848dede1489196a76e87817fa90fd2a5ffdd16f 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-23  Lluis Sanchez Gual  <lluis@novell.com>
+
+       * ObjRef.cs: Throw a TypeLoadException exception if the referenced
+         type can't be found. That's better than a nullref.
+
 2006-07-15  Jonathan Chambers  <joncham@gmail.com>
 
        * RemotingServices.cs: Begin implementing COM Interop.
index ad2fde125b27799abe3685ae6dc5ff22989282a0..2bd66f451662bdcb5a3272baf6b52d8364afa6f7 100644 (file)
@@ -69,7 +69,7 @@ namespace System.Runtime.Remoting {
                {
                        this.uri = uri;
                        channel_info = cinfo;
-                       typeInfo = new TypeInfo (Type.GetType (typeName));
+                       typeInfo = new TypeInfo (Type.GetType (typeName, true));
                }
 
                internal ObjRef (ObjRef o, bool unmarshalAsProxy) {