The root cause is described here:
https://bugs.openjdk.org/browse/JDK-8272495
>Seen in the original version that was not fixed:
>The JNI call at https://github.com/ibmruntimes/openj9-openjdk-jdk8/blob/openj9/jdk/src/share/native/com/sun/media/sound/MidiOutDevice.c#L143 should use the original address >acquired via GetByteArrayElements, not the possibly modified address.
>jdk/src/share/native/com/sun/media/sound/MidiOutDevice.c:143
> (*e)->ReleaseByteArrayElements(e, jData, (jbyte*) data, JNI_ABORT);
>The same problem appears to be present in all versions.