Fixed regression caused by ConstructorBuilder removal. We can no longer test for MethodInfo or ConstructorInfo to distinguish the two.

This commit is contained in:
jfrijters 2012-08-29 07:05:37 +00:00
Родитель 1bb5da8583
Коммит 8258466426
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -799,7 +799,7 @@ namespace IKVM.Internal
}
return acc.newInstance(args);
}
else if (method is MethodInfo)
else if (!ReflectUtil.IsConstructor(method))
{
Debug.Assert(method.IsStatic);
// we're dealing with a constructor on a remapped type, if obj is supplied, it means

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

@ -190,5 +190,10 @@ namespace IKVM.Internal
}
return true;
}
internal static bool IsConstructor(MethodBase method)
{
return method.IsSpecialName && method.Name == ConstructorInfo.ConstructorName;
}
}
}