Skip to content

Commit

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

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

Change-Id: I9270602cd9157545a2f95b271592bd953f17264f
  • Loading branch information
davido committed Mar 28, 2021
1 parent 1e7e519 commit a50615f
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 a50615f

Please sign in to comment.