Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8336795

[lworld] JNI MonitorEnter doesn't return the right value when it throws an exception

XMLWordPrintable

      Calling JNI MonitorEnter on a value object is now specified to throw IdentityException (JDK-8335545 - was previously IllegalMonitorStateException), and MonitorEnter must return a negative value (JNI_ERR) on error. But the code for JNI MonitorEnter always returns JNI_OK even if an exception is pending.

      The existing test is not checking the return value.

            Unassigned Unassigned
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: