<i18n dev> RFR: 8259522: Apply java.io.Serial annotations in java.desktop [v2]

Alexey Ivanov aivanov at openjdk.java.net
Tue Jan 12 21:58:14 UTC 2021

On Tue, 12 Jan 2021 20:36:21 GMT, Sergey Bylokhov <serb at 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

More information about the i18n-dev mailing list