Fixed regression introduced with the switch to IKVM.Reflection.Emit. We cannot use the Type.Assembly property for TypeBuilders.

This commit is contained in:
jfrijters 2009-07-27 16:46:15 +00:00
Родитель d592720c9c
Коммит d7b29bfca9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;