From 7c8b9410788b09527b6a9459281665019a7023b2 Mon Sep 17 00:00:00 2001 From: cheister Date: Fri, 10 Nov 2023 13:32:30 -0800 Subject: [PATCH] Add add-opens for JDK 21 java.lang.IllegalAccessError (#1069) --- src/main/kotlin/bootstrap.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/bootstrap.bzl b/src/main/kotlin/bootstrap.bzl index cdca22d45..52c5f2fb8 100644 --- a/src/main/kotlin/bootstrap.bzl +++ b/src/main/kotlin/bootstrap.bzl @@ -170,6 +170,7 @@ def kt_bootstrap_binary( "-XX:+IgnoreUnrecognizedVMOptions", "--add-opens=java.base/java.nio=ALL-UNNAMED", "--add-opens=java.base/java.lang=ALL-UNNAMED", + "--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED", "--add-opens=jdk.jdeps/com.sun.tools.jdeps=ALL-UNNAMED", ], main_class = main_class,