There is a regression in jline-terminal-jni v3.30.7 and v4.0.0 with OpenJDK 21.0.10.
JniTerminalProvider.checkNativeAccess() is failing with UnsupportedOperationException.
A comment in the code says that Module.isNativeAccessEnabled() is not supposed to exist in JDK < 22, but it does.
There is a regression in jline-terminal-jni v3.30.7 and v4.0.0 with OpenJDK 21.0.10.
JniTerminalProvider.checkNativeAccess() is failing with UnsupportedOperationException.
A comment in the code says that Module.isNativeAccessEnabled() is not supposed to exist in JDK < 22, but it does.