Skip to content

Commit 7c8b941

Browse files
authored
Add add-opens for JDK 21 java.lang.IllegalAccessError (#1069)
1 parent bc90033 commit 7c8b941

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/bootstrap.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def kt_bootstrap_binary(
170170
"-XX:+IgnoreUnrecognizedVMOptions",
171171
"--add-opens=java.base/java.nio=ALL-UNNAMED",
172172
"--add-opens=java.base/java.lang=ALL-UNNAMED",
173+
"--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED",
173174
"--add-opens=jdk.jdeps/com.sun.tools.jdeps=ALL-UNNAMED",
174175
],
175176
main_class = main_class,

0 commit comments

Comments
 (0)