[lworld] RFR: 8346307: [lworld] Clarify identity vs value in Class, Objects, and document limitations of value objects [v4]

ExE Boss duke at openjdk.org
Wed Jun 18 16:43:47 UTC 2025


On Wed, 19 Feb 2025 19:42:36 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Indeed, this API is returning `false` for interfaces and primitive types if preview features are not enabled, which is wrong. Making it simply return `!isIdentity()` may be better and conforms to the javadoc specification here. See https://github.com/openjdk/valhalla/blob/991ec927a2a111e5021b12be3413dfc96efbc74a/src/hotspot/share/prims/jvm.cpp#L1333-L1337
>
> Corrected in 68dd3fb675d0f87da8de2bc7525d5bcc2a87dac1

Suggestion:

        return !isIdentity();

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

PR Review Comment: https://git.openjdk.org/valhalla/pull/1327#discussion_r2153517423


More information about the valhalla-dev mailing list