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

JDK17 Record serialization should work with default settings (no need for JSON.Feature.USE_FIELD_MATCHING_GETTERS) #154

Closed
cowtowncoder opened this issue Jun 14, 2024 · 2 comments

Comments

@cowtowncoder
Copy link
Member

(off-shoot of #149 )

While #94 added support for serializing Java (17) and Groovy records, it requires explicit enabling of JSON.Feature.USE_FIELD_MATCHING_GETTERS (as per tests that now run).
But this should not be needed; code should automatically apply this setting for Record types.

Note that #148 adds introspection capability to detect if given class is a Record.

@cowtowncoder
Copy link
Member Author

@Shounaks do you think you could help resolve this?

@cowtowncoder
Copy link
Member Author

Fixed via #156

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

No branches or pull requests

1 participant