[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)
authorvkargov <kargov@gmail.com>
Fri, 6 Oct 2017 20:07:33 +0000 (13:07 -0700)
committerLudovic Henry <luhenry@microsoft.com>
Fri, 6 Oct 2017 20:07:33 +0000 (16:07 -0400)
commit56b3c007f428d93b7f230d58744393ad69e4ca63
tree921e12e02d04ae48a94e88ff9783f82541899358
parent72c86fe6cc214bd8dcd2043846c90a6cc5cbe58d
[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)

* [jit] Don't insta-fail on faulty cominterop invocations.

* [runtime] New test for bug 8477.

* [jit] Implement mono_error_get_exception_name() and mono_mb_emit_exception_for_error()

* [jit] Throw an exception when a static method on a ComImport class is called.
mono/metadata/cominterop.c
mono/metadata/method-builder.c
mono/metadata/method-builder.h
mono/tests/bug-8477.cs [new file with mode: 0644]
mono/utils/mono-error-internals.h
mono/utils/mono-error.c