You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this one as well when I upgraded to JDK 21, most likely this is related to the following bug in 21 https://bugs.openjdk.org/browse/JDK-8320575 . I tested it by using OpenJDK 23 and the problem was gone, so not a bug in Yasson, but a side effect of the bug in the JDK. It is also fixed in OpenJDK 21.0.6 recently, but I think not many vendors have released their distribution of that version yet.
Better to close this one, or keep it open for a while for those who search the issue list.
I have come across a weird behavior after updating Java to version 21.
When having a record with a
List
field, the serialization of the object seems to behave differently.I have made a reproducer using JBang for simplicity. For more info, see: https://www.jbang.dev/
output for Java 17:
Output for Java 21:
For some reason, the elements of
testRecords
seem to have map instances in Java 21.The text was updated successfully, but these errors were encountered: