From d7b29bfca90ee59d2c898e040c9eafacb7704147 Mon Sep 17 00:00:00 2001 From: jfrijters Date: Mon, 27 Jul 2009 16:46:15 +0000 Subject: [PATCH] Fixed regression introduced with the switch to IKVM.Reflection.Emit. We cannot use the Type.Assembly property for TypeBuilders. --- ikvmc/CompilerClassLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ikvmc/CompilerClassLoader.cs b/ikvmc/CompilerClassLoader.cs index 8ede33f7..c35d4d08 100644 --- a/ikvmc/CompilerClassLoader.cs +++ b/ikvmc/CompilerClassLoader.cs @@ -3011,7 +3011,7 @@ namespace IKVM.Internal Console.Error.WriteLine("Error: custom assembly class loader class not found"); return 1; } - if(!wrapper.IsPublic && !wrapper.TypeAsBaseType.Assembly.Equals(assemblyBuilder)) + if(!wrapper.IsPublic && !ReflectUtil.IsFromAssembly(wrapper.TypeAsBaseType, assemblyBuilder)) { Console.Error.WriteLine("Error: custom assembly class loader class is not accessible"); return 1;