- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
  P4                     
     - 
    repo-valhalla
 
                    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.
The existing test is not checking the return value.
- relates to
 - 
                    
JDK-8335545 [lworld] JNI MonitorEnter doesn't throw the right exception
-         
     - Resolved
 
 -         
 
- links to
 - 
                    
        
        Commit(lworld)
        openjdk/valhalla/f48c0f45
    
 - 
                    
        
        Review(lworld)
        openjdk/valhalla/1422