Am 12.09.24 um 16:15 schrieb Rémy Maucherat:
Hi,

...

Another, less problematic, yet still annoying change will be
https://openjdk.org/jeps/472 in Java 24+. Basically, the native access
flag use will become mandatory. This is a bit annoying since it is not
possible to add "--enable-native-access=ALL-UNNAMED" in the default
command line without breaking on older Java.

This has become reality now in Java 24 EA (OpenJDK 24-ea+19-2228).

I get the following warnings:

- AprLifecycleListener

21.10.2024 15:08:19.251992 WARNING: A restricted method in java.lang.System has been called 21.10.2024 15:08:19.252110 WARNING: java.lang.System::load has been called by org.apache.tomcat.jni.Library in an unnamed module (file:/opt/products/tomcat101/10.1.31-1/lib/tomcat-jni.jar) 21.10.2024 15:08:19.252325 WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module 21.10.2024 15:08:19.252415 WARNING: Restricted methods will be blocked in a future release unless native access is enabled

- OpenSSLLifecycleListener

21.10.2024 16:29:10.560329 WARNING: A restricted method in java.lang.foreign.AddressLayout has been called 21.10.2024 16:29:10.560732 WARNING: java.lang.foreign.AddressLayout::withTargetLayout has been called by org.apache.tomcat.util.openssl.openssl_h in an unnamed module (file:/opt/products/tomcat101/10.1.31-1/lib/tomcat-coyote-ffm.jar) 21.10.2024 16:29:10.561550 WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module 21.10.2024 16:29:10.561833 WARNING: Restricted methods will be blocked in a future release unless native access is enabled

Best regards,

Rainer




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to