зеркало из https://github.com/mono/ikvm-fork.git
Fixed regression caused by ConstructorBuilder removal. We can no longer test for MethodInfo or ConstructorInfo to distinguish the two.
This commit is contained in:
Родитель
1bb5da8583
Коммит
8258466426
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче