-
Notifications
You must be signed in to change notification settings - Fork 358
Java 16's records support - field access methods and constructors #1100
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
Comments
Could you make that two separate tickets? One for the double constructor call and one for the lack of access method support? Also, please provide a Minimimal Reproducable Example, preferable as a Github repository. Make sure to include the database, either as an in memory database or if that is not possible using Testcontainers. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Created separate issues with minimal reproducible example: |
When saving Java 16's record in repository field access methods do not seem to be accessed. Is this caused by lack of support for default record's field access methods (and Spring Data JDBC accesses fields directly) or intentional behavior?
What is more strange is that record's default constructor is not called once during save but twice. Is there a reason for that.
The text was updated successfully, but these errors were encountered: