Bug 279425

Summary: [exp-run] java=21
Product: Ports & Packages Reporter: Dag-Erling Smørgrav <des>
Component: Ports FrameworkAssignee: Port Management Team <portmgr>
Status: New ---    
Severity: Affects Only Me CC: ports-bugs, vvd
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dag-Erling Smørgrav freebsd_committer freebsd_triage 2024-05-31 09:29:52 UTC
Please perform an exp-run with DEFAULT_VERSIONS=java=21
Comment 1 Antoine Brodin freebsd_committer freebsd_triage 2024-06-09 19:53:21 UTC
Some failure logs:


https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/OpenSim-core-4.1_6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/R-cran-rJava-1.0.11.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/apache-commons-collections-3.2.2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/apache-openoffice-4.1.15.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/apache-openoffice-devel-4.2.1707679630,4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/aparapi-1.0.0_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/arduino18-1.8.5_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/bouncycastle-1.45_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/bouncycastle15-1.71.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/charva-1.1.4_6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/colt-1.2.0_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/cytoscape-3.6.1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/digital-0.29.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/dnsjava-2.1.9.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/elki-0.7.1.1166_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/flexdock-1.2.4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/freeguide-0.11.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/gogui-1.4.10.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/hsqldb-2.3.4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jacop-4.8.0.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jalingo-0.6.0_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/java-sigar-1.7.3_11.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/javahelp-2.0.05.20170719_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jbidwatcher-2.5.6_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jchessboard-1.5_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jcommon-1.0.23.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jericho-html-3.2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jgroups-2.12.0.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jicmp-1.4.4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jicmp6-1.2.3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jin-2.14.1_5.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jinput-2.0.10,1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jogamp-jogl-2.3.2_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jogl-1.1.1_9.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jrrd-1.1.4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jsch-0.1.55.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jtransforms-2.4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jvmtop-0.8.0.27_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/jxgrabkey-0.3.2_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/kawa-3.1.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/libmatthew-0.8.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/lizzie-0.6.105_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/luajava-1.1_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/nginx-full-1.24.0_5,3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/opsin-3.0.20190223_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/owasp-dependency-check-3.1.1_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/pdf-renderer-0.9.1,1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/rhino-1.7.r4_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/rxtx-openjdk21-2.2p2_4.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/sabre-20100501.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/signald-0.15.0_3.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/snappyjava-1.1.10.5.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/spread-j-3.17.3_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/sra-tools-3.0.6.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/stendhal-1.35_1.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/vuze-5.7.4.0_2.log
https://pkg-status.freebsd.org/gohan04/data/140amd64-default-foo/2024-06-08_08h11m52s/logs/errors/xml-security-1.5.5_1.log
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-09 22:36:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=411ad89a8344407c361b653509a3a598204f1ae8

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.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(-)
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-06-09 22:37:30 UTC
(In reply to commit-hook from comment #2)
Tested in poudriere 13.3 amd64 with OpenJDK 8, 11, 17, 18, 19 and 20.