Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions JythonCli.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,15 @@ void interpretJBangBlock() throws IOException {
String ropt = (String) e;
ropts.add(ropt);
}

// Remove this workaround for Java 26 and use the
// still to be released updated jnr/jffi library
if (javaVersion.equals("24") || javaVersion.equals("25")) {
ropts.add("--enable-native-access=ALL-UNNAMED");
// https://github.com/jnr/jffi/issues/165
// ropts.add("-Djffi.unsafe.disabled=true");
ropts.add("--sun-misc-unsafe-memory-access=allow");
}
}
}

Expand Down