git: 3f21b099200a - main - math/jacop: fix building in jdk11 and jdk17
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Dec 2025 18:27:57 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3f21b099200a91c587a183d1b64a4d3460cc5454
commit 3f21b099200a91c587a183d1b64a4d3460cc5454
Author: Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-12-13 14:16:57 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-12-29 18:27:26 +0000
math/jacop: fix building in jdk11 and jdk17
Error fixed:
SimpleArrayList.java:187: error: tag not supported in HTML5: tt
[00:01:31] [ERROR] * Returns <tt>true</tt> if this list contains the specified element.
It does not build on jdk21.
Error on jdk21:
[00:00:43] [INFO] Compiling 30 source files to /wrkdirs/usr/ports/math/jacop/work/jacop-4.8.0/target/classes at 1765635688496
[00:00:44] [ERROR] error:
[00:00:44] [INFO] bad constant pool index: 0 at pos: 48454
[00:00:44] [INFO] while compiling: <no file>
[00:00:44] [INFO] during phase: globalPhase=<no phase>, enteringPhase=<some phase>
PR: 291629
Approved-by: maintainer timeout
---
math/jacop/Makefile | 1 +
math/jacop/files/patch-pom.xml | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/math/jacop/Makefile b/math/jacop/Makefile
index 12e8b50535a5..e721b75b6893 100644
--- a/math/jacop/Makefile
+++ b/math/jacop/Makefile
@@ -17,6 +17,7 @@ BUILD_DEPENDS= maven>0:devel/maven
USES= java
USE_GITHUB= yes
GH_ACCOUNT= radsz
+JAVA_VERSION= 8 11 17
NO_ARCH= yes
diff --git a/math/jacop/files/patch-pom.xml b/math/jacop/files/patch-pom.xml
new file mode 100644
index 000000000000..a0092d003e08
--- /dev/null
+++ b/math/jacop/files/patch-pom.xml
@@ -0,0 +1,12 @@
+--- pom.xml.orig 2025-12-11 22:29:09 UTC
++++ pom.xml
+@@ -454,9 +454,7 @@ setup to run configuration. -->
+ <version>2.10.4</version>
+
+ <configuration>
+- <!--- Possible solution to not print any warrnings for Java 1.8
+ <additionalparam>-Xdoclint:none</additionalparam>
+- -->
+
+ <sourceFileExcludes>
+ <sourcepath>