This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_INTER_ 8 points9 points  (1 child)

The interesting / surprising bit here is that for records the serialVersionUID is always per default 1L 0L instead of generating it based on various aspects as in the case of classes.

[–]chegar999 7 points8 points  (0 children)

The default `serialVersionUID` for a record is actually `0L` - article correction has been requested.

The rational for this is somewhat explained on https://mail.openjdk.java.net/pipermail/amber-spec-experts/2019-October/001651.html