Pass enable-native-access=ALL-UNNAMED to gradle #64971
Closed
Azure Pipelines / aspnetcore-ci (Build Test: Windows Server x64)
failed
Jan 8, 2026 in 38m 35s
Build Test: Windows Server x64 failed
Annotations
Check failure on line 0 in EXEC
azure-pipelines / aspnetcore-ci (Build Test: Windows Server x64)
EXEC#L0
EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) A restricted method in java.lang.System has been called
Check failure on line 0 in EXEC
azure-pipelines / aspnetcore-ci (Build Test: Windows Server x64)
EXEC#L0
EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/D:/a/_work/1/s/.gradle/wrapper/dists/gradle-8.10-bin/deqhafrv1ntovfmgh0nh3npr9/gradle-8.10/lib/native-platform-0.22-milestone-26.jar)
Check failure on line 0 in EXEC
azure-pipelines / aspnetcore-ci (Build Test: Windows Server x64)
EXEC#L0
EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
Check failure on line 0 in EXEC
azure-pipelines / aspnetcore-ci (Build Test: Windows Server x64)
EXEC#L0
EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Restricted methods will be blocked in a future release unless native access is enabled
Check failure on line 54 in eng\targets\Java.Common.targets
azure-pipelines / aspnetcore-ci (Build Test: Windows Server x64)
eng\targets\Java.Common.targets#L54
eng\targets\Java.Common.targets(54,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command "../gradlew -Dorg.gradle.daemon=false compileJava" exited with code 1.
Loading