Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly identify and throw on unsupported mpc case #1005

Merged
merged 1 commit into from
Aug 16, 2020

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Aug 15, 2020

Fix conditional cast in TypeCollector
This was throwing NRE when the cast failed rather than a more helpful InvalidCastException.
We can't support late bound types in an AOT environment. Or at least it would be rather involved to do so.
Move the mpc test input into a new location where we can unit test the UnionResolver without impacting mpc input.

Fixes #1002

Fix conditional cast in TypeCollector
This was throwing NRE when the cast failed rather than a more helpful `InvalidCastException`.
We can't support late bound types in an AOT environment. Or at least it would be rather involved to do so.
Move the mpc test input into a new location where we can unit test the UnionResolver without impacting mpc input.

Fixes MessagePack-CSharp#1002
@AArnott AArnott added this to the v2.2 milestone Aug 15, 2020
@AArnott AArnott requested a review from neuecc August 15, 2020 01:26
@AArnott AArnott self-assigned this Aug 15, 2020
Copy link
Member

@neuecc neuecc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@neuecc neuecc merged commit c88ac05 into MessagePack-CSharp:v2.2 Aug 16, 2020
@AArnott AArnott deleted the fix999 branch September 12, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants