JDK 25 warning: Restricted method called `java.lang.System::load`
When running in JDK 25, I see the following warning:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.xerial.snappy.SnappyLoader in an unnamed module (file:/mnt/mesos/sandbox/app/target/lib/org/xerial/snappy/snappy-java/1.1.10.5/snappy-java-1.1.10.5.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Is there a way to code around this, or will -enable-native-access=ALL-UNNAMED be required moving foward?