On Tue, 12 Jan 2021 20:36:21 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> src/java.desktop/share/classes/com/sun/media/sound/InvalidDataException.java 
>> line 42:
>> 
>>> 40:      */
>>> 41:     @Serial
>>> 42:     private static final long serialVersionUID = 1L;
>> 
>> This is the standard wording, yet should it mention the serialization is 
>> between the same versions only because the value of serialVersionUID is not 
>> unique?
>
> I think it is "quite" unique, the "1L" is used from the beginning. It is just 
> different from the value which could be generated by the "serialver" but 
> still should work fine.

Okay. There are several classes which extend this one, all of them use the same 
1L value which makes it not "quite" unique.

Changing the values at this time presents more risks than benefits.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2020

Reply via email to