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](gson) Fix Expr deserialize compatibility #38799

Merged
merged 1 commit into from
Aug 4, 2024

Commits on Aug 2, 2024

  1. [fix](gson) Fix Expr deserialize compatibility

    Since GsonBuilder.create() adds all registered factories to GSON in reverse
    order, and ExprAdapterFactory is registered before the RuntimeTypeAdapterFactory
    for Expr, ExprAdapterFactory will not be executed.
    
    This PR adjusts their registration order. Now, it will first check in
    ExprAdapterFactory whether to use the pre-134 deserialize method, and then
    attempt to use the RuntimeTypeAdapterFactory for Expr.class.
    w41ter committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    eae0069 View commit details
    Browse the repository at this point in the history