aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Druzenko <vvd@FreeBSD.org>2024-06-09 22:27:04 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2024-06-09 22:27:04 +0000
commit411ad89a8344407c361b653509a3a598204f1ae8 (patch)
tree6dd3c9faf576f970f5e7ac41115f1eec290de495
parent1acc62c56236fee8b9d5c10350a78f3c36489933 (diff)
downloadports-411ad89a8344407c361b653509a3a598204f1ae8.tar.gz
ports-411ad89a8344407c361b653509a3a598204f1ae8.zip
java/apache-commons-collections: limit JAVA_VERSION from 8 to 20 because build fails with 21+
Build error with OpenJDK 21: [javac] /wrkdirs/usr/ports/java/apache-commons-collections/work/commons-collections-3.2.2-src/src/java/org/apache/commons/collections/CursorableLinkedList.java:188: error: addLast(Object) in CursorableLinkedList cannot implement addLast(E) in List [javac] public boolean addLast(Object o) { [javac] ^ [javac] return type boolean is not compatible with void [javac] where E is a type-variable: [javac] E extends Object declared in interface List [javac] /wrkdirs/usr/ports/java/apache-commons-collections/work/commons-collections-3.2.2-src/src/java/org/apache/commons/collections/CursorableLinkedList.java:176: error: addFirst(Object) in CursorableLinkedList cannot implement addFirst(E) in List [javac] public boolean addFirst(Object o) { [javac] ^ [javac] return type boolean is not compatible with void [javac] where E is a type-variable: [javac] E extends Object declared in interface List New JDK 21 methods in java.util.List addFirst and addLast has a void return type. This clashes with the existing boolean return from the same method in AbstractLinkedList. Upstream fixed this in 4.5.0 only. But this old 3.x branch isn't fixed. Upstream issue: https://issues.apache.org/jira/browse/COLLECTIONS-842 PR: 279425 Reported by: antoine (exp-run)
-rw-r--r--java/apache-commons-collections/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/apache-commons-collections/Makefile b/java/apache-commons-collections/Makefile
index 6c52ce1209f7..bf861617ee20 100644
--- a/java/apache-commons-collections/Makefile
+++ b/java/apache-commons-collections/Makefile
@@ -13,7 +13,7 @@ LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USE_JAVA= yes
-JAVA_VERSION= 8+
+JAVA_VERSION= 8 11 17 18 19 20
USE_ANT= yes
ALL_TARGET= jar