Skip to content

[release/6.0] Pass a null getter\setter with [JsonIgnore] and src gen - #58572

Merged
danmoseley merged 1 commit into
release/6.0from
backport/pr-58405-to-release/6.0
Sep 3, 2021
Merged

[release/6.0] Pass a null getter\setter with [JsonIgnore] and src gen#58572
danmoseley merged 1 commit into
release/6.0from
backport/pr-58405-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Sep 2, 2021

Copy link
Copy Markdown
Contributor

Backport of #58405 to release/6.0

Fixes#58320

/cc @steveharter

Customer Impact

Using both[obsolete] and [JsonIgnore] on a property of a serializable POCO with the source generator causes a CS0618 compile warning due to the obsolete property being referenced by generated code. This was reported by the community.

Testing

A test was added to verify this case; the source generator no longer references the property setter\getter.

Risk

Low; code changes are small and localized to the generation of the delegate to the setter\getter.

@ghost

ghost commented Sep 2, 2021

Copy link
Copy Markdown

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

Issue Details

Backport of #58405 to release/6.0

/cc @steveharter

Customer Impact

Testing

Risk

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

area-System.Text.Json

Milestone:-

@danmoseley

Copy link
Copy Markdown
Contributor

approved. low risk fix to new feature, customer reported.

@danmoseleydanmoseley added the Servicing-approved Approved for servicing release label Sep 3, 2021
@danmoseley
danmoseley merged commit 317dd69 into release/6.0Sep 3, 2021
@danmoseley
danmoseley deleted the backport/pr-58405-to-release/6.0 branch September 3, 2021 00:13
@ghostghost locked as resolved and limited conversation to collaborators Oct 3, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Text.JsonServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@danmoseley@steveharter