On Thu, 2 Jul 2026 04:56:48 GMT, David Holmes <[email protected]> wrote:

>> A finalizer in an abstract value class should probably still be registered 
>> for identity subclasses; as otherwise, changing an abstract identity class 
>> with a finalizer to an abstract value class with a finalizer would be a 
>> breaking change as long as finalizers continue to exist.
>
> I tend to agree with @ExE-Boss here. Vagaries of finalizers aside, if the 
> subclass can be an identity class then the superclass's finalizer should be 
> registered for instances of the subclass. Otherwise the JEP needs to state 
> clearly that this is the case.

FTR the behaviour was ratified by a spec update through JDK-8387417

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2589#discussion_r3583977062

Reply via email to