toolchain_hostjdk8 breaks in bazel 0.21: passing -Xbootclasspath/p to java9 #7158
Labels
area-java-toolchains
javabase, java_toolchain flags, JDK selection, java_toolchain rules, java_tools repository
P3
We're not considering working on this, but happy to review a PR. (No assignee)
stale
Issues or PRs that are stale (no activity for 30 days)
team-Rules-Java
Issues for Java rules
type: bug
Description of the problem / feature request:
--java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8 no longer works in bazel 0.21. The javac workers fail to start with:
---8<---8<--- Start of log ---8<---8<---
-Xbootclasspath/p is no longer a supported option.
ion.
---8<---8<--- End of log ---8<---8<---
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
git clone https://github.com/bazelbuild/examples/
cd examples
bazel build //:ProjectRunner --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
What's the output of
bazel info release
?release 0.21.0
What I've figured out so far: this combination tries to run the remotejdk (zulu java 9) with JDK8_JVM_OPTS, which are not accepted by the new jvm.
The text was updated successfully, but these errors were encountered: