From 5f04d791451812f2a762a535e8d443349afb8e8d Mon Sep 17 00:00:00 2001 From: jfrijters Date: Fri, 14 Nov 2008 07:55:53 +0000 Subject: [PATCH] Added check for referencing non-existing constructor in map.xml --- ikvmc/AotTypeWrapper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ikvmc/AotTypeWrapper.cs b/ikvmc/AotTypeWrapper.cs index 37cda64f..7e72d012 100644 --- a/ikvmc/AotTypeWrapper.cs +++ b/ikvmc/AotTypeWrapper.cs @@ -506,6 +506,11 @@ namespace IKVM.Internal // are we adding a new constructor? if(GetMethodWrapper(StringConstants.INIT, constructor.Sig, false) == null) { + if(constructor.body == null) + { + Console.Error.WriteLine("Error: Constructor {0}.{1} in xml remap file doesn't have a body.", clazz.Name, constructor.Sig); + continue; + } bool setmodifiers = false; MethodAttributes attribs = 0; MapModifiers(constructor.Modifiers, true, out setmodifiers, ref attribs);