-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Prevent runtime prop metadata retrieval when [JsonIgnore] is used #60024
Conversation
Tagging subscribers to this area: @dotnet/area-system-text-json |
src/libraries/System.Text.Json/gen/JsonSourceGenerator.Emitter.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Text.Json/tests/Common/TestClasses/TestClasses.Constructor.cs
Outdated
Show resolved
Hide resolved
c43b151
to
ffb733f
Compare
...braries/System.Text.Json/tests/Common/ConstructorTests/ConstructorTests.ParameterMatching.cs
Show resolved
Hide resolved
...braries/System.Text.Json/tests/Common/ConstructorTests/ConstructorTests.ParameterMatching.cs
Show resolved
Hide resolved
d901f29
to
6112780
Compare
...ibraries/System.Text.Json/src/System/Text/Json/Serialization/Metadata/GenericMethodHolder.cs
Outdated
Show resolved
Hide resolved
08945c3
to
ae2f69c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming green CI
MemberInfo memberInfo, | ||
Type memberType, | ||
bool isVirtual, | ||
JsonSerializerOptions options) | ||
{ | ||
JsonPropertyInfo jsonPropertyInfo = converter.CreateJsonPropertyInfo(); | ||
JsonPropertyInfo jsonPropertyInfo = new JsonPropertyInfo<sbyte>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add a comment here explaining why sbyte
is being used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be sure to do so in a follow up to avoid CI reset. It will be the same as the comment on CreateIgnoredParameterPlaceholder
below.
Test failures unrelated. |
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1333901172 |
Fixes #59936, a 6.0 regression. Contributes to #59364.