RFR: 8371975: Apply java.io.Serial annotations in java.security.sasl [v2]
Sergey Bylokhov
serb at openjdk.org
Fri Dec 12 01:10:25 UTC 2025
> Please review the application of the `@Serial` annotation ([JDK-8202385](https://bugs.openjdk.org/browse/JDK-8202385)) to types in the `java.security.sasl` module to enable stricter compile-time checking of serialization-related declarations.
>
> Example of a similar change https://github.com/openjdk/jdk/pull/27925.
>
> Note: this annotation can be applied to these methods and fields:
> * 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
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-8371975
- 8371975: Apply java.io.Serial annotations in java.security.sasl
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28345/files
- new: https://git.openjdk.org/jdk/pull/28345/files/f3d0639f..0ada029f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28345&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28345&range=00-01
Stats: 122104 lines in 1883 files changed: 80666 ins; 30374 del; 11064 mod
Patch: https://git.openjdk.org/jdk/pull/28345.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28345/head:pull/28345
PR: https://git.openjdk.org/jdk/pull/28345
More information about the security-dev
mailing list