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

Java record support #78

Open
sergey-morenets opened this issue Oct 5, 2021 · 2 comments
Open

Java record support #78

sergey-morenets opened this issue Oct 5, 2021 · 2 comments

Comments

@sergey-morenets
Copy link

Hi

It seems that Java records are not supported. If I try to deserialize JSON string into Java record I get this error with JDK 17:

Exception in thread "main" java.lang.IllegalAccessError: class demo.ExampleRecordAccAccess tried to access protected method 'void java.lang.Record.<init>()' (demo.ExampleRecordAccAccess is in unnamed module of loader 'app'; java.lang.Record is in module java.base of loader 'bootstrap')

@UrielCh
Copy link
Contributor

UrielCh commented Dec 16, 2021

fork and make a pull request if you want.

@UrielCh
Copy link
Contributor

UrielCh commented Jan 24, 2022

Or you can use register some custom mapper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants