RFR: 8369027: Apply java.io.Serial annotations in java.scripting

Sergey Bylokhov serb at openjdk.org
Thu Oct 2 03:25:56 UTC 2025


Please review the application of the `@Serial` annotation ([JDK-8202385](https://bugs.openjdk.org/browse/JDK-8202385)) to types in the java.scripting module to enable stricter compile-time checking of serialization-related declarations.

The patch is trivial, only one class needs to be updated.

Example of a similar change https://github.com/openjdk/jdk/pull/26208.

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

Commit messages:
 - 8369027: Apply java.io.Serial annotations in java.scripting

Changes: https://git.openjdk.org/jdk/pull/27599/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27599&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369027
  Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/27599.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27599/head:pull/27599

PR: https://git.openjdk.org/jdk/pull/27599


More information about the core-libs-dev mailing list