Update desugared_library_jdk_11 deps
This updates to
https://github.com/google/desugar_jdk_libs/commit/b36f01c0f06872af53aa089feef1256a1114df06
(commit for version 2.0.1)
Content of README.google:
Name: desugar_jdk_libs
URL: https://github.com/google/desugar_jdk_libs
Version: b36f01c0f06872af53aa089feef1256a1114df06
Revision: N/A
Date: Jan 27 2023
License: The GNU General Public License (GPL) (see LICENSE)
Description:
This project contains a small subset of OpenJDK libraries simplified for use on older runtimes.
Artifacts
desugar_jdk_libs.jar
desugar_jdk_libs_chm_only.jar
built with
bazel build //jdk11/src:d8_java_base_selected_with_addon.jar
bazel build //jdk11/src:java_base_chm_only
respectively.
Bug: b/266903708
Bug: b/256723819
Change-Id: I56fdeabac40e875cfced50cf07350b45de7004d9
diff --git a/tools/desugar_jdk_libs_update.py b/tools/desugar_jdk_libs_update.py
index 2e751e9..213b9b7 100755
--- a/tools/desugar_jdk_libs_update.py
+++ b/tools/desugar_jdk_libs_update.py
@@ -28,6 +28,19 @@
if (args.desugar_jdk_libs_revision):
subprocess.check_call(
['git', '-C', checkout_dir, 'checkout', args.desugar_jdk_libs_revision])
+ print("Hack to workaround b/256723819")
+ os.remove(
+ join(
+ checkout_dir,
+ "jdk11",
+ "src",
+ "java.base",
+ "share",
+ "classes",
+ "java",
+ "time",
+ "format",
+ "DesugarDateTimeFormatterBuilder.java"))
print("Building desugared library")
bazel = os.path.join(utils.BAZEL_TOOL, 'lib', 'bazel', 'bin', 'bazel')
with utils.ChangedWorkingDirectory(checkout_dir):