[loader] Add descriptive error messages to class failure.
[mono.git] / mono / metadata / marshal.c
index f25fd94f18bee418233e9c1716615bc560d9333c..67ae35f8f3cb704551ba92816cae08cf6b3752ba 100644 (file)
@@ -9369,6 +9369,7 @@ mono_marshal_get_synchronized_wrapper (MonoMethod *method)
 #endif
 
        if (method->klass->valuetype && !(method->flags & MONO_METHOD_ATTR_STATIC)) {
+               /* FIXME Is this really the best way to signal an error here?  Isn't this called much later after class setup? -AK */
                mono_class_set_type_load_failure (method->klass, "");
 #ifndef DISABLE_JIT
                /* This will throw the type load exception when the wrapper is compiled */