> Please review the application of the `@Serial` annotation > ([JDK-8202385](https://bugs.openjdk.org/browse/JDK-8202385)) to types in the > java.logging module to enable stricter compile-time checking of > serialization-related declarations. Only one class remains to be covered; all > other relevant fields and methods are already annotated with `@Serial`. > > 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 > > > Example of a similar change in the > [java.compiler](https://github.com/openjdk/jdk/pull/24891) module.
Sergey Bylokhov has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision: - Merge branch 'openjdk:master' into JDK-8361533 - 8361533: Apply java.io.Serial annotations in java.logging ------------- Changes: - all: https://git.openjdk.org/jdk/pull/26208/files - new: https://git.openjdk.org/jdk/pull/26208/files/9d4f1153..e6c35899 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=26208&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26208&range=00-01 Stats: 115239 lines in 3014 files changed: 68646 ins; 30880 del; 15713 mod Patch: https://git.openjdk.org/jdk/pull/26208.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26208/head:pull/26208 PR: https://git.openjdk.org/jdk/pull/26208
