Please review the application of `@java.io.Serial` annotation (JDK-8202385) to 
types in the datatransfer module to enable stricter compile-time checking of 
serialization-related declarations. 

This annotation can be applied to these methods in the module:
  * private void writeObject(java.io.ObjectOutputStream stream) throws 
IOException
  * private void readObject(java.io.ObjectInputStream stream) throws 
IOException, ClassNotFoundException
  * private void readObjectNoData() throws ObjectStreamException 
   * ANY-ACCESS-MODIFIER Object writeReplace() throws ObjectStreamException
   * ANY-ACCESS-MODIFIER Object readResolve() throws ObjectStreamException
   * private static final ObjectStreamField[] serialPersistentFields
   * private static final long serialVersionUID

But only the `serialVersionUID` is updated since only this field is used in the 
datatransfer module.

A similar fix was implemented for java.base module as well:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2019-August/062046.html

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

Commit messages:
 - Merge branch 'master' into JDK-8259439
 - Initial fix

Changes: https://git.openjdk.java.net/jdk/pull/1996/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1996&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8259439
  Stats: 31 lines in 5 files changed: 19 ins; 0 del; 12 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1996.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1996/head:pull/1996

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

Reply via email to