Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Oct 29, 2021

Backport of #61020 to release/6.0

Fixes #61007

/cc @lewing @BrzVlad

Customer Impact

Found by a customer, object.GetType() functions incorrectly on Nullable types in the interpreter.

Testing

Manual

Regression

Yes, the regression was introduced this year.

Risk

Low. Regression introduced in net6.0

We were statically optimizing this call to return the actual constrained class type, which is incorrect for nullables, because boxing of a nullable (as part of the constrained call) actually creates an object with the type of the nullable's value (or null if there is no value).
@ghost
Copy link

ghost commented Oct 29, 2021

Tagging subscribers to this area: @BrzVlad
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #61020 to release/6.0

/cc @lewing @BrzVlad

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-Codegen-Interpreter-mono

Milestone: -

@lewing lewing added this to the 6.0.x milestone Oct 29, 2021
@lewing lewing added the Servicing-consider Issue for next servicing release review label Oct 29, 2021
@BrzVlad
Copy link
Member

BrzVlad commented Nov 1, 2021

@lewing I recommend for the new version of my PR to be backported instead

@lewing lewing closed this Nov 1, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Codegen-Interpreter-mono Servicing-consider Issue for next servicing release review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants