Skip to content

[release/6.0] Set generic type arguments nullability for value types #58390

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

Merged
merged 5 commits into from
Sep 14, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 30, 2021

Backport of #58036 to release/6.0
Issue: #57920

/cc @buyaa-n

Customer Impact

Generic type parameters nullability not set for value types, which causes bug for generic parameters of ValueTuple. Customers would expect to have nullability info for generic parameters because it is not set for ValueTuple they would get a runtime exception

Testing

Unit/CI

Risk

Low, bug fix for broken 6.0 scenario

@danmoseley
Copy link
Member

Nit (for later) typo: NullablNotNullIfNotNullReturn --> NullableNotNullIfNotNullReturn

@danmoseley
Copy link
Member

danmoseley commented Aug 31, 2021

Some of the test types/members in the test file here don't seem used:

MethodTupleNullNonNull
FieldMaybeNull2
PropertyDisabledAllowNull
PropertyDisabledMaybeNull
PropertyNullableEnabled
MethodEnumerableNonNonNullUnknownNullNonNullNon
MethodNullableDisabled

Do any of those suggest missing tests? If not they can be cleaned up in a future PR.

@danmoseley
Copy link
Member

Approved for release/6.0. New API, significant bug, customer reported, localized fix.
Please double check for extra relevant tests we should add here though, to help catch any other bugs we might have to fix later.

@buyaa-n
Copy link
Contributor

buyaa-n commented Aug 31, 2021

Do any of those suggest missing tests? If not they can be cleaned up in a future PR.

Good catch, some of them missing tests, some not needed, I will clean up with a different PR

@danmoseley
Copy link
Member

We have some time, so would it make sense to add those missing tests, and roll them into this PR? In case they find something else.

@buyaa-n
Copy link
Contributor

buyaa-n commented Aug 31, 2021

We have some time, so would it make sense to add those missing tests, and roll them into this PR? In case they find something else.

I don't expect they find something else, but sure its good to have

@buyaa-n
Copy link
Contributor

buyaa-n commented Sep 1, 2021

In case they find something else.

I don't expect they find something else

You are right, it found something 👍, thanks! PR up

@danmoseley
Copy link
Member

@buyaa-n this might not meet the bar >=Sept 14th. Is it nearly ready?

@buyaa-n
Copy link
Contributor

buyaa-n commented Sep 8, 2021

@buyaa-n this might not meet the bar >=Sept 14th. Is it nearly ready?

Waiting for #58479 approval and merge, then I will cherry-pick that commit to this PR

)

* Add/remove some tests, fix generics indexing bug
@buyaa-n
Copy link
Contributor

buyaa-n commented Sep 11, 2021

@buyaa-n this might not meet the bar >=Sept 14th. Is it nearly ready?

Waiting for #58479 approval and merge, then I will cherry-pick that commit to this PR

@danmoseley the updates pushed to this PR, it is now ready for review/merge

@danmoseley
Copy link
Member

Approved. Fixing customer reported bug (and similar bugs) in feature that's new in 6.0. Risk of affecting unrelated code is low as we don't call through this API.

@danmoseley danmoseley added the Servicing-approved Approved for servicing release label Sep 13, 2021
@danmoseley
Copy link
Member

@buyaa-n can someone give this a signoff? then I can merge it.

Copy link
Contributor

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

:shipit:

@buyaa-n buyaa-n requested a review from stephentoub September 13, 2021 17:47
@buyaa-n
Copy link
Contributor

buyaa-n commented Sep 13, 2021

@buyaa-n can someone give this a signoff? then I can merge it.

Probably it should not be my sing-off @stephentoub @steveharter @jeffhandley

@Anipik Anipik merged commit f860bce into release/6.0 Sep 14, 2021
@buyaa-n buyaa-n deleted the backport/pr-58036-to-release/6.0 branch September 16, 2021 16:23
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Reflection Servicing-approved Approved for servicing release
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

4 participants