-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rules_closure (and Gerrit) fails on Bazel@HEAD with @bazel_tools//tools/jdk:toolchain_java9 #5961
Comments
It seems that this diff fixed that: diff --git a/java/io/bazel/rules/closure/BUILD b/java/io/bazel/rules/closure/BUILD
index e8d1003..acf13f2 100644
--- a/java/io/bazel/rules/closure/BUILD
+++ b/java/io/bazel/rules/closure/BUILD
@@ -26,6 +26,7 @@ java_binary(
deps = [
"//java/com/google/javascript/jscomp",
"//java/io/bazel/rules/closure/webfiles",
+ "//java/io/bazel/rules/closure/webfiles/compiler",
"//java/io/bazel/rules/closure/worker",
"@com_google_dagger",
"@com_google_guava", |
Adding the dep is a fine work-around, but it shouldn't be necessary. Strict Deps ignores some dagger generated code: Line 418 in b470c0f
Dagger uses this utility to pick a version-appropriate That logic is failing on JDK 10 with |
This was apparently fixed in 3987300? |
JDK-8209865 remains unfixed, but 3987300 works around it by not using the flag. |
Thanks, @laurentlb cherry-picked 3987300 in upcoming 0.17.0 release so that it's fine to close this issue. |
Could you clarify how the mentioned workaround is able to produce JDK 8 (or JDK 9) byte code using embedded JDK10, without using |
|
Thanks for clarifying. |
Trying to build
rule_closure
on most recent master (3555e5ba61fdcc17157dd833eaf7d19b313b1bca), and Gerrit with JDK9 on Bazel@HEAD(398478c) is failing with the same error://CC @cushon
The text was updated successfully, but these errors were encountered: