2009-03-28 Zoltan Varga <vargaz@gmail.com>
+ * mini.c (mini_method_compile): Clear the loader error if the method
+ header cannot be decoded.
+
* mini-trampolines.c (mono_magic_trampoline): Handle generic virtual
interface methods on proxies correctly.
header = mono_method_get_header (method_to_compile);
if (!header) {
+ mono_loader_clear_error ();
cfg->exception_type = MONO_EXCEPTION_INVALID_PROGRAM;
cfg->exception_message = g_strdup_printf ("Missing or incorrect header for method %s", cfg->method->name);
if (MONO_PROBE_METHOD_COMPILE_END_ENABLED ())
2009-03-28 Zoltan Varga <vargaz@gmail.com>
+ * load-exceptions.cs: Add a test for missing locals.
+
* remoting4.cs: Add a test for generic virtual interface methods on proxies.
2009-03-28 Sebastien Pouliot <sebastien@ximian.com>
// Missing classes referenced from metadata
//
- // FIXME: These do not work yet
-#if FALSE
public static int test_0_missing_local () {
try {
missing_local ();
}
catch (TypeLoadException ex) {
}
+ catch (InvalidProgramException ex) {
+ }
/* MS.NET doesn't throw an exception if a local is not found */
return 0;
}
+ // FIXME: These do not work yet
+#if FALSE
public static void missing_parent () {
new Miss1 ();
}