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

Marked as reviewed by mullan (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/28345#pullrequestreview-3569232772

Reply via email to