Skip to content

Commit

Permalink
Workaround strongly encapsulate JDK internals by default
Browse files Browse the repository at this point in the history
Closes #13138. See: [1] for more details.

[1] https://openjdk.java.net/jeps/396

Change-Id: I9270602cd9157545a2f95b271592bd953f17264f
  • Loading branch information
davido committed Mar 30, 2021
1 parent 8a165dc commit 3211be8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/jdk/default_java_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ def _bootclasspath_impl(ctx):

args = ctx.actions.args()
args.add("-XX:+IgnoreUnrecognizedVMOptions")
args.add("--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED")
args.add("--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED")
args.add("--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED")
args.add_joined(
"-cp",
[class_outputs[0].dirname, "%s/lib/tools.jar" % host_javabase.java_home],
Expand Down

0 comments on commit 3211be8

Please sign in to comment.