-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Jackson's ObjectMapper writes empty JSON strings for Spring Boot 3.1.0 if the entity is a record #35891
Comments
I don't think this has anything to do with Spring Boot. Other than the
When run, it outputs |
Thanks for the quick feedback. I guess the problem is that the Spring Boot upgrade also updated Jackson since I make use of the |
@wilkinsona: Small update: This is in fact a Jackson bug which was already fixed in Jackson v2.15.1, see FasterXML/jackson-databind#3895. However Spring Boot 3.1.0 still uses Jackson 2.15.0. I guess in the next patch / minor update, you will also increase the Jackson version? |
@DManstrator Correct. We have an automated process which will pick up the next Jackson release. |
When will Spring Boot 3.1.1 be released? Users are also reporting errors for JobRunr related to this. |
@rdehuyss Scheduled release dates are shown here: https://github.com/spring-projects/spring-boot/milestones |
Thanks - makes sense 🙂. I feel like a 🤡 for not checking it... |
Bug Report
I noticed after upgrading from Spring Boot 2.7.12 to Spring Boot 3.1.0, that records cannot be serialized anymore.
ObjectMapper#writeObjectAsString
now returns{ }
. With Spring Boot 2.7.12, the serilization of records was possible. Since I found nothing in the migration guideline, I expect this to be a bug.I created a minimal, reproducable example to show this, see DManstrator/sb3-serialization-test#1 and the Checks.
The text was updated successfully, but these errors were encountered: