The JNI IsSameObject method has been updated to perform a state-wise equivalence test. Whilst the existing simple description of the method sounds like it is doing identity comparison we can easily adapt it to say it is equivalent to Java `==` and so implicitly will perform state-wise equivalence for value objects.
JNI MonitorEnter was previously updated (JDK-8336793) to throw IdentityException, but the wording can be tweaked to maintain consistency with text used elsewhere.
JNI NewWeakGlobalRef should throw IdentityException for value objects.
JNI MonitorEnter was previously updated (
JNI NewWeakGlobalRef should throw IdentityException for value objects.
- relates to
-
JDK-8336793 [lworld] Update specification for JNI_MonitorEnter to allow for IdentityException
-
- Resolved
-
-
JDK-8379007 [lworld] JNI NewWeakGlobalRef should throw IdentityException for value types
-
- In Progress
-
-
JDK-8339130 JVM implementation of value classes and objects
-
- Proposed
-