Prepend javac to test bootclasspath
@@ -32,6 +32,13 @@ java_test(
java_test(
name = "TreePrunerTest",
srcs = ["TreePrunerTest.java"],
+ data = [
+ "//third_party/java/jdk/langtools:javac_jar",
+ ],
+ jvm_flags = [
+ # Simulates how Bazel invokes turbine
+ "-Xbootclasspath/p:$(location //third_party/java/jdk/langtools:javac_jar)",
+ ],
tags = ["jdk8"],
deps = [
"//src/java_tools/buildjar/java/com/google/devtools/build/java/turbine/javac:tree_pruner",
