Always emit an explicit method override if we've mangled the name/sig, because we can't predict whether it will be needed or not (without keeping track of the mangling in the base classes) and the cost is minimal since this doesn't happen all that often.

This commit is contained in:
jfrijters 2008-12-01 05:23:51 +00:00
Родитель 2e6feb0089
Коммит 9991b38140
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -6177,7 +6177,7 @@ namespace IKVM.Internal
setNameSig = true;
}
}
bool needMethodImpl = baseMce != null && (explicitOverride || baseMce.RealName != name) && !needFinalize;
bool needMethodImpl = baseMce != null && (setNameSig || explicitOverride || baseMce.RealName != name) && !needFinalize;
if(unloadableOverrideStub || needMethodImpl)
{
attribs |= MethodAttributes.NewSlot;