On Wed, 13 May 2026 01:09:29 GMT, Dan Smith <[email protected]> wrote:
> Clarifications and cleanups for the java.io API spec related to serialization. > > See also [JDK-8372300](https://bugs.openjdk.org/browse/JDK-8372300), which > updates the serialization specification. (The serialization specification > should be regarded as the source of truth, with the API specs providing > sometimes-imperfect descriptions of what it says.) > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). src/java.base/share/classes/java/io/Externalizable.java line 54: > 52: * objects are restored by reading them from an ObjectInputStream.<br> > 53: * > 54: * An Externalizable instance can designate a substitution object via No need to say anything special about value classes and Externalizable, so I just rolled this back to its JDK form. (A value class can choose to implement Externalizable if it wants to, but it won't be able to do anything interesting, because all its fields are immutable. There's no integrity-related reason to have special rules or discussion here.) ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2429#discussion_r3230813596
