-
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
System.Text.Json GetConverterFromAttribute need to be annotated for native aot #68878
Comments
Tagging subscribers to this area: @dotnet/area-system-reflection Issue DetailsThe above method in The conversation in the PR has more details.
|
Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis Issue DetailsThe above method in The conversation in the PR has more details.
|
…t#71714 Include JsonSerializerContext in JsonSerializerOptions copy constructor. Fix dotnet#71716 Move reflection-based converter resolution out of JsonSerializerOptions. Fix dotnet#68878
* Remove implicit fallback to reflection-based serialization. Fix #71714 Include JsonSerializerContext in JsonSerializerOptions copy constructor. Fix #71716 Move reflection-based converter resolution out of JsonSerializerOptions. Fix #68878 * Address feedback & add one more test * Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerContext.cs Co-authored-by: Stephen Toub <stoub@microsoft.com> * fix build * Bring back throwing behavior in JsonSerializerContext and add tests * Only create caching contexts if a resolver is populated * Add null test for JsonSerializerContext interface implementation. * skip RemoteExecutor test in netfx targets * Add DefaultJsonTypeInfoResolver test for types with JsonConverterAttribute * remove nullability annotation * Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Converters.cs Co-authored-by: Krzysztof Wicher <mordotymoja@gmail.com> Co-authored-by: Stephen Toub <stoub@microsoft.com> Co-authored-by: Krzysztof Wicher <mordotymoja@gmail.com>
The above method in
JsonSerializerOptions
has a suppression currently until converter code that calls this method is refactored to distinguish between reflection and source generated paths. The suppression is there so as to make forward progress on the effort to annotate this library and get the PR #68464 merged but it is dangerous since some reflection code paths will go through this method.The conversation in the PR has more details.
The text was updated successfully, but these errors were encountered: