Actually my solution to this βproblemβ was to deactivate this warning in my project configuration (I use Eclipse, but I think this is the same for NetBeans) as IMHO this is a wrong warning: not having , serialVersion is the safest choice, because the JVM computes one that is unique at startup (something like a class hash), and when explicitly added, it loads you to take care to update this if and only if you make incompatible changes to your the code.
So, if you donβt care, itβs better to avoid this value (in this way it is only compatible with a version compatible with confidence , but with some false positives: it considers it to be incompatible, but actually it would be) instead of putting there is a fixed value that you (possibly in my case) forgot to update when necessary, which will lead to actual errors of reality (false-negatives: it considers that it is compatible, but it is not).
lapo
source share