On Wed, 20 May 2026 23:53:35 GMT, Chen Liang <[email protected]> wrote:

>> Yes. Any value class, abstract or not, with fields or not, must have its 
>> instances initialized using a real constructor.
>
> I thought this might break java.lang.Number, but after checking this 
> shouldn't hurt. Will make this change.

Oh, that's interesting. What happens to BigInteger under this rule (a 
Serializable identity class that extends a Serializable abstract value class)? 
How is it deserialized?

Maybe we're going to have to be more permissive with stateless abstract value 
classes...

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2350#discussion_r3277833333

Reply via email to