提交 ad8b49e0 编写于 作者: L Lukasz

Do not abort when detecting a recursive type definition.

上级 91f47f6a
......@@ -4301,9 +4301,8 @@ mono_class_init (MonoClass *class)
}
if (class->init_pending) {
mono_loader_unlock ();
/* this indicates a cyclic dependency */
g_error ("pending init %s.%s\n", class->name_space, class->name);
mono_class_set_failure (class, MONO_EXCEPTION_TYPE_LOAD, g_strdup ("Recursive type definition detected"));
goto leave;
}
class->init_pending = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册