Skip to content

Fix ReflectionTypeLoadException nullable annotations - #545

Merged
stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:reflectionfix
Jan 8, 2020
Merged

stephentoub merged 1 commit into
dotnet:masterfrom
stephentoub:reflectionfix

Conversation

@stephentoub

Copy link
Copy Markdown
Member

Replaces the approved #147, which was created from an old fork.
Fixes dotnet/corefx#42595

@stephentoub

Copy link
Copy Markdown
Member Author

/azp list

@dotnet dotnet deleted a comment from azure-pipelines Bot Dec 5, 2019
@stephentoub

Copy link
Copy Markdown
Member Author

/azp run runtime-libraries outerloop

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@dotnet dotnet deleted a comment from azure-pipelines Bot Dec 5, 2019
@stephentoub stephentoub reopened this Dec 22, 2019
We were previously using `Type[]?`, but the array can actually contain null, so it needs to be `Type?[]?`.  Further, upon reviewing a bunch of call sites, it's clear that a) code expects to be able to pass null for the arrays into the ctor but also b) expects to be able to read Types/LoaderExceptions without doing null checks.  As such, I modified the annotations accordingly, and fix the implementation to match.
@stephentoub

Copy link
Copy Markdown
Member Author

OSX failure is #1447

@stephentoub
stephentoub merged commit f720a40 into dotnet:master Jan 8, 2020
@stephentoub
stephentoub deleted the reflectionfix branch January 8, 2020 14:10
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
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.

2 participants