Eli Graber
04/25/2025, 5:24 PM--enable-native-access=ALL-UNNAMED
to my jvm args until all of these libraries/tools migrate off of JNI (so probably never)?
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by com.android.layoutlib.bridge.Bridge in an unnamed module (file:/home/eli/.gradle/caches/8.14/transforms/7ddbbeceffb506f2342ae2f7da76cf06/transformed/layoutlib-15.1.4.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
Eli Graber
04/25/2025, 5:39 PM--enable-native-access=ALL-UNNAMED
to my jvm args?ephemient
04/25/2025, 5:44 PMEli Graber
04/25/2025, 5:47 PMEli Graber
04/25/2025, 6:08 PMVampire
04/25/2025, 11:41 PMJAVA_TOOL_OPTIONS
environment variable as that is read by all the distributions automatically and would then be used for each and every JVM started with that enviornment variable.Eli Graber
04/27/2025, 3:41 AM--enable-native-access=ALL-UNNAMED
?Vampire
04/27/2025, 9:20 AMEli Graber
04/27/2025, 9:59 AMVampire
04/27/2025, 10:07 AMVampire
04/27/2025, 10:08 AMEli Graber
04/27/2025, 10:13 AMVampire
04/27/2025, 8:41 PMVampire
04/27/2025, 8:42 PMEli Graber
04/27/2025, 8:43 PM--enable-native-access=ALL-UNNAMED
. Those warnings are coming from several Gradle plugins that I use, and so I want to open issues with those projects requesting that they fix the warnings.
However, I have no idea how to propose they fix it. So I'm asking if there's some Gradle API they can use when creating test tasks or workers that would let them specify --enable-native-access=ALL-UNNAMED
.Vampire
04/27/2025, 8:54 PMTest
task or using javaExec
or using exec
or using Worker API with process isolation and so on, they should always be able to specify JVM arguments.