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

Support Java Records when present in JVM. #2197

Closed
wants to merge 2 commits into from
Closed

Support Java Records when present in JVM. #2197

wants to merge 2 commits into from

Commits on Sep 22, 2022

  1. Support Java Records when present in JVM.

    Fixes #1794
    
    Added a TypeAdapterFactory that deals specifcally with Java 17 Records.
    It uses reflection to detect if the JVM supports records, and from there
    accesses the RecordComponent array to serialize and deserialize objects.
    
    This new TypeAdapterFactory will only be added when Records are actually
    supported on the JVM.
    staale committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    3bab47b View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2022

  1. Fixed review comments by @eamonnmcmanus

    Ran Google code format on RecordTypeAdapterFactory so that it now conforms to Google style.
    Added primitive default values for primitive fields, to avoid NPE in the constructor.
    stb-staaleu committed Sep 25, 2022
    Configuration menu
    Copy the full SHA
    080fb64 View commit details
    Browse the repository at this point in the history