From 581e7cb9e9326433ff8eb72e2c9690fd63edeee3 Mon Sep 17 00:00:00 2001 From: keertk <110264242+keertk@users.noreply.github.com> Date: Mon, 13 Mar 2023 13:00:01 -0700 Subject: [PATCH] Revert "[6.2.0] Update java_tools v11.12 (#17761)" This reverts commit c9e3eeb2f34d66e2c8bcccd32786ea75c357497e. --- distdir_deps.bzl | 36 +++++++++++++--------------- tools/jdk/default_java_toolchain.bzl | 1 - 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/distdir_deps.bzl b/distdir_deps.bzl index 3f599620c2b4d3..345e8ca985eed0 100644 --- a/distdir_deps.bzl +++ b/distdir_deps.bzl @@ -371,64 +371,60 @@ DIST_DEPS = { "remote_java_tools_test", "remote_java_tools_for_testing", ], - "archive": "java_tools-v11.12.zip", - "sha256": "af20366f926b1dadf8c084a51936116ef2f0db90e73e94b406c4ad8180f0788d", + "archive": "java_tools-v11.9.zip", + "sha256": "5cd59ea6bf938a1efc1e11ea562d37b39c82f76781211b7cd941a2346ea8484d", "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.12/java_tools-v11.12.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v11.12/java_tools-v11.12.zip", + "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.9/java_tools-v11.9.zip", + "https://github.com/bazelbuild/java_tools/releases/download/java_v11.9/java_tools-v11.9.zip", ], "used_in": [ "test_WORKSPACE_files", ], - "package_version": "11.12", }, "remote_java_tools_linux": { "aliases": [ "remote_java_tools_test_linux", "remote_java_tools_linux_for_testing", ], - "archive": "java_tools_linux-v11.12.zip", - "sha256": "37f79597f5b8c1501b9c66ded8ac68c61205ad39ef3ceda0e24fbd0afa3cd97f", + "archive": "java_tools_linux-v11.9.zip", + "sha256": "512582cac5b7ea7974a77b0da4581b21f546c9478f206eedf54687eeac035989", "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.12/java_tools_linux-v11.12.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v11.12/java_tools_linux-v11.12.zip", + "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.9/java_tools_linux-v11.9.zip", + "https://github.com/bazelbuild/java_tools/releases/download/java_v11.9/java_tools_linux-v11.9.zip", ], "used_in": [ "test_WORKSPACE_files", ], - "package_version": "11.12", }, "remote_java_tools_windows": { "aliases": [ "remote_java_tools_test_windows", "remote_java_tools_windows_for_testing", ], - "archive": "java_tools_windows-v11.12.zip", - "sha256": "43432ce4814513d6497661b4fede691982b3bdef7a1907808b096291f56a8001", + "archive": "java_tools_windows-v11.9.zip", + "sha256": "677ab910046205020fd715489147c2bcfad8a35d9f5d94fdc998d217545bd87a", "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.12/java_tools_windows-v11.12.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v11.12/java_tools_windows-v11.12.zip", + "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.9/java_tools_windows-v11.9.zip", + "https://github.com/bazelbuild/java_tools/releases/download/java_v11.9/java_tools_windows-v11.9.zip", ], "used_in": [ "test_WORKSPACE_files", ], - "package_version": "11.12", }, "remote_java_tools_darwin": { "aliases": [ "remote_java_tools_test_darwin", "remote_java_tools_darwin_for_testing", ], - "archive": "java_tools_darwin-v11.12.zip", - "sha256": "aed319892b638efabd08405b8f835770e13e2465d20459876c5f457f2b6426f3", + "archive": "java_tools_darwin-v11.9.zip", + "sha256": "b9e962c6a836ba1d7573f2473fab3a897c6370d4c2724bde4017b40932ff4fe4", "urls": [ - "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.12/java_tools_darwin-v11.12.zip", - "https://github.com/bazelbuild/java_tools/releases/download/java_v11.12/java_tools_darwin-v11.12.zip", + "https://mirror.bazel.build/bazel_java_tools/releases/java/v11.9/java_tools_darwin-v11.9.zip", + "https://github.com/bazelbuild/java_tools/releases/download/java_v11.9/java_tools_darwin-v11.9.zip", ], "used_in": [ "test_WORKSPACE_files", ], - "package_version": "11.12", }, "remotejdk11_linux": { "aliases": [ diff --git a/tools/jdk/default_java_toolchain.bzl b/tools/jdk/default_java_toolchain.bzl index c7d7642e0f7029..7251e790682db6 100644 --- a/tools/jdk/default_java_toolchain.bzl +++ b/tools/jdk/default_java_toolchain.bzl @@ -49,7 +49,6 @@ DEFAULT_JAVACOPTS = [ "-parameters", # https://github.com/bazelbuild/bazel/issues/15219 "-Xep:ReturnValueIgnored:OFF", - "-Xep:EmptyTopLevelDeclaration:OFF", ] # java_toolchain parameters without specifying javac, java.compiler,