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

Sergey Bylokhov serb at openjdk.java.net
Tue Jan 12 20:42:19 UTC 2021


On Tue, 12 Jan 2021 11:29:24 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Sergey Bylokhov has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Update src/java.desktop/share/classes/java/awt/image/ImagingOpException.java
>>    
>>    Co-authored-by: Aleksei Ivanov <70774172+aivanov-jdk at users.noreply.github.com>
>>  - Update src/java.desktop/share/classes/java/awt/image/RasterFormatException.java
>>    
>>    Co-authored-by: Aleksei Ivanov <70774172+aivanov-jdk at users.noreply.github.com>
>
> 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.

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

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


More information about the i18n-dev mailing list