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

Fix STJ SG regression in handling of property names that are reserved keywords. #98058

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

eiriktsarpalis
Copy link
Member

Should be backported to .NET 8

Fix #98050.

@ghost
Copy link

ghost commented Feb 6, 2024

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

Issue Details

Should be backported to .NET 8

Fix #98050.

Author: eiriktsarpalis
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis added this to the 9.0.0 milestone Feb 6, 2024
@eiriktsarpalis eiriktsarpalis merged commit 24d149c into dotnet:main Feb 7, 2024
107 of 111 checks passed
@eiriktsarpalis eiriktsarpalis deleted the fix/sg-regression branch February 7, 2024 09:17
@eiriktsarpalis
Copy link
Member Author

/backport to release/8.0-staging

Copy link
Contributor

github-actions bot commented Feb 7, 2024

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/7812516008

Copy link
Contributor

github-actions bot commented Feb 7, 2024

@eiriktsarpalis backporting to release/8.0-staging failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix #98050.
Using index info to reconstruct a base tree...
M	src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs
M	src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Unit.Tests/JsonSourceGeneratorTests.cs
Falling back to patching base and 3-way merge...
Auto-merging src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Unit.Tests/JsonSourceGeneratorTests.cs
CONFLICT (content): Merge conflict in src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Unit.Tests/JsonSourceGeneratorTests.cs
Auto-merging src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Fix #98050.
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

github-actions bot commented Feb 7, 2024

@eiriktsarpalis an error occurred while backporting to release/8.0-staging, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

eiriktsarpalis added a commit to eiriktsarpalis/runtime that referenced this pull request Feb 7, 2024
eiriktsarpalis added a commit that referenced this pull request Feb 8, 2024
…t are reserved keywords. (#98082)

* Fix #98050. (#98058)

* bump servicing version
@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2024
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.

Json source generator compiler error using reserved property names and DefaultIgnoreCondition
3 participants