Are there any plugins that can "automatically update" the serialVersionUID of classes as their structures change?

I am now using the GenerateSerialVersionUID plugin, but it generates the UID on demand, when requested by the user.

I was looking for something that could re-generate the UID as the class structure changes.

Does such a plugin exist?

Thanks,
Behrang

2 comments
Comment actions Permalink

Why would you want that? How would you then deserialize old data?

0
Comment actions Permalink

It might be overkill, but mainly to change the serialVersionUID if I change the class structure such that it is no longer compatible with older versions for de/serialization.

0

Please sign in to leave a comment.