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

[release/6.0] Fix NRT warnings in source generated code #59817

Merged
merged 3 commits into from
Oct 1, 2021

Conversation

github-actions[bot]
Copy link
Contributor

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

Backport of #59755 to release/6.0

/cc @eiriktsarpalis

Customer Impact

The System.Text.Json source generator produces nullability warnings when generating code for types containing nullable properties. This can result in compiler errors for projects that treat warnings as errors and forces users to disable nullable annotations project-wide. This is a customer reported bug.

Testing

Tests have been added that validate that the impacted use cases compile as expected.

Risk

Low. Updates the product code so that suppressions are inserted on expressions that require it.

@ghost
Copy link

ghost commented Sep 30, 2021

Tagging subscribers to this area: @dotnet/area-system-text-json
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #59755 to release/6.0

/cc @eiriktsarpalis

Customer Impact

Testing

Risk

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

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis self-assigned this Sep 30, 2021
@eiriktsarpalis eiriktsarpalis added this to the 6.0.0 milestone Sep 30, 2021
@danmoseley
Copy link
Member

Does the Logging SG have the same issue?

@eiriktsarpalis
Copy link
Member

eiriktsarpalis commented Sep 30, 2021

Does the Logging SG have the same issue?

@maryamariyan might know cf. #59464 for a repro in the STJ case.

@danmoseley
Copy link
Member

@maryamariyan @dotnet/area-extensions-logging ?

@maryamariyan
Copy link
Member

@maryamariyan @dotnet/area-extensions-logging ?

thanks for the ping, I need to investigate this for logging

@Anipik
Copy link
Contributor

Anipik commented Oct 1, 2021

approved in email.

@Anipik Anipik merged commit 0e19ef9 into release/6.0 Oct 1, 2021
@eiriktsarpalis eiriktsarpalis deleted the backport/pr-59755-to-release/6.0 branch October 1, 2021 15:59
@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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants