Prepend javac to the bootclasspath for ijar tests
This is a prerequisite for the next javac update, and mirrors the
approach used for other javac-based tests in Bazel (e.g.
BazelJavaCompilerTest).
PiperOrigin-RevId: 152779250
diff --git a/third_party/ijar/test/BUILD b/third_party/ijar/test/BUILD
index 2687888..1450b36 100644
--- a/third_party/ijar/test/BUILD
+++ b/third_party/ijar/test/BUILD
@@ -157,6 +157,11 @@
":interface_ijar_testlib",
":liblocal_and_anonymous_lib.jar",
":local_and_anonymous-interface.jar",
+ "//third_party/java/jdk/langtools:javac_jar",
+ ],
+ jvm_flags = [
+ # Simulates how Bazel invokes javac
+ "-Xbootclasspath/p:$(location //third_party/java/jdk/langtools:javac_jar)",
],
tags = ["zip"],
test_class = "IjarTests",