From nobody Sun Jun 09 22:36:09 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vy8t13kWJz5N62t; Sun, 09 Jun 2024 22:36:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vy8t12rFVz4Gd1; Sun, 9 Jun 2024 22:36:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717972569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bjnIdtF/uXt8jULHLJXknCVmDKho2SfDcGrA65xGHlw=; b=U9kNZ/q4r+0tAyYNbzo8le1nWND/TlPYu/Qr0RTnTH1wGirWe62QTASTchZ7sylvv0tnXI 3Z+6qw4XfcW1Um6LBLLB1aVTfusW3ZVfsJigU9Mhn1vaFWczJf3NrJFoxGFIwJMVe+iGFD JkJkxJrdo436GOWFgTJbyjcLA0SOe3Iz7aySvwVuj+zYd/hMwBBmlk1kFYi7E1GHPIAaYI gxEyKaOAxGBA+S45omEarZ8hjlekxtOOjUAajmJX9vYDmBK6i401vtHDhSCujZbEYl/fPj 9DiRToh87eyObtGw67kF7/z4EeKN7dZSUVMAesF9A40FEFd2/3wFRmdhzOVpjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717972569; a=rsa-sha256; cv=none; b=OVSC47Uo930kS+Ba+3LnQsZPaPO/g5ZUjXMiFwFdNOadWSkCCMtRnKzhK5PfNSb/Dsoh2a YYVsahgRtS5kryK5r+GdwukhgY9CSvg5R723aoypqCbuikIXfyvAMY/fFKNzyXwm7jhFK0 Z+Mh/dhDvomRzmIOUJ5FkiGKGsYmIIddgPyFuMrLuZHcsk0wfXr7v0neAPzInurg6geZcV wAi1lp+tWm1mxkVsQvyhls7WJBDdPpF2GIE4oL4uxtqEdPLxVZh6Lawa5mq37ycc0crZtx fPNzN3llaoKq6CQR0nS0DjPkPfVR0dC3wOrrb+CayIGOk8mgecg8aSy6wpzzWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717972569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bjnIdtF/uXt8jULHLJXknCVmDKho2SfDcGrA65xGHlw=; b=Hl9Z9MpIWy3qZdj8P9ZVQPvhV/l7QzKzPelDVenaJ2XjarFhSNwJlqj/7EkTpecU/OoICA UX5fZyw5LqmkdyslFXPLlmQDvzv6v8F6GD4y22ASNy+V+h10eBe/ZIsLxzr28evIUiNnPl Yk/FUv4jkjfub/pLCeadLt4/YK4MrbV68nYsG9oOyvZj+RgcRYg6EUYq23S1XEs66Xtmst lHTM++c9wCk3TJmeUwk3uB3kntkaIqm7CvwUHXbEX9bpgB4KgHX6c3hDlww3i/vbEqfepm APcjS8+8RhGj8toTLkQ4C3Ni0tzOTOnwDYTI7QBVp6OQ5qnnYpZOrI/0GO9LXQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vy8t127Z5z114W; Sun, 9 Jun 2024 22:36:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 459Ma9x8031367; Sun, 9 Jun 2024 22:36:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 459Ma9Wm031364; Sun, 9 Jun 2024 22:36:09 GMT (envelope-from git) Date: Sun, 9 Jun 2024 22:36:09 GMT Message-Id: <202406092236.459Ma9Wm031364@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 411ad89a8344 - main - java/apache-commons-collections: limit JAVA_VERSION from 8 to 20 because build fails with 21+ List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 411ad89a8344407c361b653509a3a598204f1ae8 Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=411ad89a8344407c361b653509a3a598204f1ae8 commit 411ad89a8344407c361b653509a3a598204f1ae8 Author: Vladimir Druzenko AuthorDate: 2024-06-09 22:27:04 +0000 Commit: Vladimir Druzenko CommitDate: 2024-06-09 22:27:04 +0000 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) --- java/apache-commons-collections/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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