I thought JNI was being deprecated in favor of the new FFM interface. https://openjdk.org/jeps/472
> It is not a goal to deprecate JNI or to remove JNI from the Java Platform.
It says they want to put a safety barrier in front of JNI, so you'll have to explicitly indicate that you want a module to use JNI.