On 08/11/2013 09:45, Yuri Gaevsky wrote:
Hi Stuart,
Unfortunately, several Java SE interfaces have public SVUIDs, so the fix can
cause confusion:
I think Stuart's suggestion is good for the case where the class doesn't
have the serialVersionUID already, you just paste it into the source
code to keep the value as it was generated previously.
I think your concern is where the serialVersionUID is declared but
hasn't following the recommendation. In that case then the emitted
source line won't match the existing source declaration. Does that
matter? I guess serialver should use reflection to get the modifiers and
print a helpful suggestion.
-Alan.