git: d55eb70661fb - main - java/jcommon: fix build with jdk21+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Dec 2025 18:58:29 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d55eb70661fbae9c59ddfbc48b861bfa017118dc
commit d55eb70661fbae9c59ddfbc48b861bfa017118dc
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-14 19:19:32 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-29 18:58:14 +0000
java/jcommon: fix build with jdk21+
The build was pinned to a jdk version that is not supported by jdk21.
Fix that by just compiling to the JAVA_DEFAULT version.
PR: 291667
Approved-By: maintainer timeout
---
java/jcommon/files/patch-ant_build.xml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/java/jcommon/files/patch-ant_build.xml b/java/jcommon/files/patch-ant_build.xml
new file mode 100644
index 000000000000..54026eff51dd
--- /dev/null
+++ b/java/jcommon/files/patch-ant_build.xml
@@ -0,0 +1,20 @@
+--- ant/build.xml.orig 2025-12-14 17:44:25 UTC
++++ ant/build.xml
+@@ -49,7 +49,7 @@
+ <javac srcdir="src/main/java"
+ destdir="${builddir}"
+ deprecation="${build.deprecation}" debug="${build.debug}"
+- optimize="${build.optimize}" target="${build.target}" source="${build.source}">
++ optimize="${build.optimize}">
+ <include name="org/jfree/*"/>
+ <include name="org/jfree/base/**"/>
+ <include name="org/jfree/date/*"/>
+@@ -113,7 +113,7 @@
+ <javac srcdir="src/main/java"
+ destdir="${builddir}"
+ deprecation="${build.deprecation}" debug="${build.debug}"
+- optimize="${build.optimize}" target="${build.target}" source="${build.source}">
++ optimize="${build.optimize}">
+ <classpath refid="build-xml.classpath" />
+ <include name="org/jfree/xml/**"/>
+ </javac>