From 4097ed1e1c403ea099025626f1119284f39a668e Mon Sep 17 00:00:00 2001 From: Colin Alworth Date: Wed, 13 Sep 2023 10:52:33 -0500 Subject: [PATCH] Use --release 8 to ensure bytecode runs on all support JVMs (#9851) The ant task `java` is able to take source, target, and release flags and only set the appropriate ones given the version of javac being invoked. The doctool package always sets this to 11, since the new doclet/taglet APIs require Java 9+. Fixes #9850 --- build_tools/doctool/build.xml | 6 +++++- common.ant.xml | 8 +++----- doc/build.xml | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/build_tools/doctool/build.xml b/build_tools/doctool/build.xml index e6524f1496..c4870197b6 100644 --- a/build_tools/doctool/build.xml +++ b/build_tools/doctool/build.xml @@ -4,7 +4,11 @@ - + + diff --git a/common.ant.xml b/common.ant.xml index 7b3604ba60..36a56b4882 100755 --- a/common.ant.xml +++ b/common.ant.xml @@ -62,8 +62,7 @@ - - + @@ -158,8 +157,7 @@ - - + @@ -172,7 +170,7 @@ diff --git a/doc/build.xml b/doc/build.xml index 5f41768b2f..10050f29e3 100644 --- a/doc/build.xml +++ b/doc/build.xml @@ -78,7 +78,7 @@