On Mon, 17 Nov 2025 06:11:00 GMT, Sergey Bylokhov <[email protected]> wrote:
> 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 This pull request has now been integrated. Changeset: d0548652 Author: Sergey Bylokhov <[email protected]> URL: https://git.openjdk.org/jdk/commit/d05486520036a4a6b3e3eee46a18f5b0e1ef493e Stats: 22 lines in 6 files changed: 16 ins; 0 del; 6 mod 8371975: Apply java.io.Serial annotations in java.security.sasl Reviewed-by: mullan ------------- PR: https://git.openjdk.org/jdk/pull/28345
