diff options
-rw-r--r-- | runtime/ClassLoaderWrapper.cs | 4 | ||||
-rw-r--r-- | runtime/TypeWrapper.cs | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/runtime/ClassLoaderWrapper.cs b/runtime/ClassLoaderWrapper.cs index d322d1d1..f86d0f5c 100644 --- a/runtime/ClassLoaderWrapper.cs +++ b/runtime/ClassLoaderWrapper.cs @@ -921,7 +921,9 @@ namespace IKVM.Internal internal static TypeWrapper GetWrapperFromType(Type type) { //Tracer.Info(Tracer.Runtime, "GetWrapperFromType: {0}", type.AssemblyQualifiedName); +#if !STATIC_COMPILER TypeWrapper.AssertFinished(type); +#endif Debug.Assert(!type.IsPointer); Debug.Assert(!type.IsByRef); TypeWrapper wrapper; @@ -1143,7 +1145,9 @@ namespace IKVM.Internal internal void SetWrapperForType(Type type, TypeWrapper wrapper) { +#if !STATIC_COMPILER TypeWrapper.AssertFinished(type); +#endif Dictionary<Type, TypeWrapper> dict; #if CLASSGC dict = typeToTypeWrapper ?? globalTypeToTypeWrapper; diff --git a/runtime/TypeWrapper.cs b/runtime/TypeWrapper.cs index e81ce6fe..44735682 100644 --- a/runtime/TypeWrapper.cs +++ b/runtime/TypeWrapper.cs @@ -2753,6 +2753,7 @@ namespace IKVM.Internal internal abstract void Finish(); +#if !STATIC_COMPILER [Conditional("DEBUG")] internal static void AssertFinished(Type type) { @@ -2765,6 +2766,7 @@ namespace IKVM.Internal Debug.Assert(!(type is TypeBuilder)); } } +#endif #if !STATIC_COMPILER && !STUB_GENERATOR internal void RunClassInit() |