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

Split aot compatible and incompatible methods #3090

Merged
merged 4 commits into from
Oct 21, 2024
Merged

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
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.

3 participants