Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jun 2024 22:36:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 279425] [exp-run] java=21
Message-ID:  <bug-279425-7788-C5BBFG8gDE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279425-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279425-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279425

--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=3D411ad89a8344407c361b653509a3a59=
8204f1ae8

commit 411ad89a8344407c361b653509a3a598204f1ae8
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-06-09 22:27:04 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
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.jav=
a: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.jav=
a: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(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279425-7788-C5BBFG8gDE>