On Wed, 1 Jul 2026 23:26:50 GMT, Chen Liang <[email protected]> wrote:
> Make sure object-writing serialization fails for "strict in serializable > super". We currently already fail when they are deserialized. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: c3f8dcae Author: Chen Liang <[email protected]> URL: https://git.openjdk.org/valhalla/commit/c3f8dcae0be50b526d5e1d49b85e5d453a5a6f20 Stats: 220 lines in 3 files changed: 200 ins; 3 del; 17 mod 8387350: [lworld] ObjectOutputStream.writeObject() doesn't throw InvalidClassException for Serializable instance with strict init fields Reviewed-by: alanb, jpai, thartmann ------------- PR: https://git.openjdk.org/valhalla/pull/2612
