xamarin-macios/tests/bindings-test
Rolf Bjarne Kvinge 10481fcf62
[runtime] Don't throw exceptions when checking if a token reference exists (and not finding any). Fixes #3830. (#3995)
* [runtime] Don't throw exceptions when checking if a token reference exists (and not finding any). Fixes #3830.

It's not necessarily bad to not be able to find a token reference for a class:
in particular not if we're just checking if a token reference exists. In this
case, don't throw any exceptions, so that the fall-back code path (if no token
references were found) can execute properly.

This scenario occurs when all the following are true:

* The runtime runs into a native object that is exposed in managed as a protocol.
* The native type's managed type does not implement the protocol.
* The dynamic registrar is being used.

Fixes https://github.com/xamarin/xamarin-macios/issues/3830.
2018-04-27 11:33:33 +02:00
..
ApiDefinition.cs [runtime] Don't throw exceptions when checking if a token reference exists (and not finding any). Fixes #3830. (#3995) 2018-04-27 11:33:33 +02:00
ApiProtocol.cs [macos] Fix XM binding projects to work with Full 2018-03-21 14:27:53 -05:00
CodeBehind.cs [runtime] Don't lock while calling selectors that can up calling managed code. Fixes #3943. (#3979) 2018-04-27 07:40:03 +02:00
ProtocolTest.cs [tests] Fix ProtocolTest to work with in both monotouch-test and linkall. (#3598) 2018-02-26 17:37:09 +01:00
RegistrarBindingTest.cs [generator/registrar] Add support for blocks in static protocol members. Fixes #41226. (#3763) 2018-03-16 23:01:56 +01:00
RuntimeTest.cs [runtime] Don't throw exceptions when checking if a token reference exists (and not finding any). Fixes #3830. (#3995) 2018-04-27 11:33:33 +02:00
StructsAndEnums.cs Optimize calls to BlockLiteral.SetupBlock to inject the block signature. (#3391) 2018-02-06 07:08:15 +01:00
bindings-test-mac.csproj [runtime] Don't lock while calling selectors that can up calling managed code. Fixes #3943. (#3979) 2018-04-27 07:40:03 +02:00
bindings-test.csproj [runtime] Don't lock while calling selectors that can up calling managed code. Fixes #3943. (#3979) 2018-04-27 07:40:03 +02:00
libtest.linkwith.cs [tests] Since libtest.a need ModelIO now, the corresponding LinkWith attributes need to state that too. 2017-09-01 11:14:46 +02:00