[lworld] RFR: 8373202: [lworld] ObjectReference.equals should follow == semantics for value objects [v4]

Alex Menkov amenkov at openjdk.org
Thu Jan 22 21:50:35 UTC 2026


On Wed, 21 Jan 2026 04:41:46 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> src/jdk.jdi/share/classes/com/sun/tools/jdi/VirtualMachineImpl.java line 841:
>> 
>>> 839:         return versionInfo().jdwpMajor >= 27;
>>> 840:     }
>>> 841: 
>> 
>> Nit: We may want to generalize this with something like 'maySupportValueClasses()'.
>
> I'm not so sure this API is really even needed. I don't believe the current calls to it are valid.

version info is private API in VirtualMachineImpl.
replaced with `supportsValueClasses` method

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1834#discussion_r2718744649


More information about the valhalla-dev mailing list