[lworld] Update the JNI specification for Value types

XMLWordPrintable

    • Fix Understood

      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.

            Assignee:
            David Holmes
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: