Skip to content

Conversation

@SaurabhMSFT
Copy link
Contributor

@SaurabhMSFT SaurabhMSFT commented Oct 16, 2024

Description

The Deserialize method would call an aot incompatible if the output info is null. We split the method into two such that the aot compatible code calls overload with JsonTypeInfo

@SaurabhMSFT SaurabhMSFT requested a review from a team as a code owner October 16, 2024 14:52
@jmprieur
Copy link
Collaborator

jmprieur commented Oct 16, 2024

Thanks @SaurabhMSFT. Is there duplication of code? I couldn't figure out without pulling the branch (which I have not done yet)

@SaurabhMSFT
Copy link
Contributor Author

I had to copy the method DeserializeOutputImplAsync and split the if block on left side(line 398-405) into two methods. Due to that if clause DeserializeOutputImplAsync method wasn't AOT compatible.

Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks @SaurabhMSFT

@SaurabhMSFT SaurabhMSFT merged commit afff1e0 into master Oct 21, 2024
4 checks passed
@SaurabhMSFT SaurabhMSFT deleted the saugautam/aot_json branch October 21, 2024 20:58
This was referenced Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants