@@ -22,7 +22,7 @@ If you have certain business reasons to not upgrade but still need something fix
2222
2323#[[##]]# Supported Java versions
2424
25- junixsocket ${project.version} is fully compatible with Java 8 and newer (tested up to Java 20 ).
25+ junixsocket ${project.version} is fully compatible with Java 8 and newer (tested up to Java 24 ).
2626
2727#[[##]]# Supported Java VMs
2828
@@ -35,6 +35,23 @@ More [details here](graalvm.html).
3535
3636Since version 2.7.0, junixsocket runs on Android, too.
3737
38+ #[[##]]# Java 24 warnings
39+
40+ Java 24 introduced a warning when a library calls System.loadLibrary to load some native JNI code,
41+ something like:
42+
43+ WARNING: A restricted method in java.lang.System has been called
44+ WARNING: java.lang.System::loadLibrary has been called by org.newsclub.net.unix.NativeLibraryLoader$StandardLibraryCandidate in an unnamed module
45+ WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
46+ WARNING: Restricted methods will be blocked in a future release unless native access is enabled
47+
48+ For now, you can ignore this warning, but can also explicitly allow native access by adding a
49+ corresponding `--enable-native-access=` statement when invoking your JVM that uses junixsocket.
50+
51+ If junixsocket is referenced by a modularized project, you could add
52+ `--enable-native-access=org.newsclub.net.unix`. Otherwise (and this includes the selftest jar),
53+ simplify specify `--enable-native-access=ALL-UNNAMED`
54+
3855#[[##]]# Supported Platforms
3956
4057The minimum set of supported (out of the box) platforms and processor architectures currently is:
0 commit comments