* Author:
* Sebastien Pouliot <sebastien@ximian.com>
*
- * Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+ * Copyright 2005-2009 Novell, Inc (http://www.novell.com)
*/
#include "security-manager.h"
/* If so check the demands on the klass (inheritor) */
if (!mono_secman_inheritance_check (klass, &demands)) {
/* Keep flags in MonoClass to be able to throw a SecurityException later (if required) */
- klass->exception_type = MONO_EXCEPTION_SECURITY_INHERITANCEDEMAND;
- klass->exception_data = NULL;
+ mono_class_set_failure (klass, MONO_EXCEPTION_SECURITY_INHERITANCEDEMAND, NULL);
}
}
}
/* If so check the demands on the overriding method */
if (!mono_secman_inheritance_check (override->klass, &demands)) {
/* Keep flags in MonoClass to be able to throw a SecurityException later (if required) */
- override->klass->exception_type = MONO_EXCEPTION_SECURITY_INHERITANCEDEMAND;
- override->klass->exception_data = base;
+ mono_class_set_failure (override->klass, MONO_EXCEPTION_SECURITY_INHERITANCEDEMAND, base);
}
}
}