Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Merge changes from TFS - #836

Merged
jkotas merged 1 commit into
dotnet:nmirrorfrom
dotnet-bot:from-tfs
Feb 9, 2016
Merged

jkotas merged 1 commit into
dotnet:nmirrorfrom
dotnet-bot:from-tfs

Conversation

@dotnet-bot

Copy link
Copy Markdown
Collaborator

No description provided.

…eption in Internal::Reflection::Core::NonPortable::RuntimeTypeUnifier::TypeTableForConstructedGenericTypes.Factory

Before the introduction of dynamic generics, the Reflection.Core layer would call into the Reflection.Execution layer to get metadata for a reflectable generic type. The old mapping tables only had entries for reflectable types, so if a type was blocked from reflection, it would not exist in the mapping table, and this translated into a MissingMetadata exception eventually.
With dynamic generics, we are able to find all instantiations (or dynamically create them), and the ReflectionBlocked attribute was never checked. This fixes the issue by making the Reflection.Core layer check for blocked types first before calling into the Reflection.Execution layer to get a RTTH for the generic type instantiation.

[tfs-changeset: 1573800]
jkotas added a commit that referenced this pull request Feb 9, 2016
@jkotas
jkotas merged commit 98064c7 into dotnet:nmirror Feb 9, 2016
@dotnet-bot
dotnet-bot deleted the from-tfs branch February 9, 2016 22:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants