On Fri, 6 Mar 2026 15:26:10 GMT, Vicente Romero <[email protected]> wrote:
>> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java line 5035: >> >>> 5033: // Check for missing serialVersionUID; check *not* done >>> 5034: // for enums or records. >>> 5035: VarSymbol svuidSym = null; >> >> Do value classes need any distinct serialVersionUID handling? > > not sure I get your question. Why should they? > Do value classes need any distinct serialVersionUID handling? Value classes have the same requirements (non-requirements) as identity classes. They are used to confirm the match between the class and the serialized stream contents. Migrated value classes especially need the value class and identity class to have the same SVUID. ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2187#discussion_r2897034521
