Bug#1057497: commons-pool: FTBFS with default Java 21

Vladimir Petko vpa1977 at gmail.com
Tue Dec 5 20:56:16 GMT 2023


Source: commons-pool
Version: 1.6-4
Severity: important
Tags: ftbfs
User: debian-java at lists.debian.org
Usertags: default-java21

Dear Maintainers,

The package commons-pool ftbfs with default Java 21.
The relevant part of the build log:
---------------
compile:
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/classes
    [javac] /<<PKGBUILDDIR>>/build.xml:112: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Using javac -source 1.5 is no longer supported, switching to 8
    [javac] Using javac -target 1.5 is no longer supported, switching to 8
    [javac] Compiling 22 source files to /<<PKGBUILDDIR>>/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 8
    [javac] warning: [options] source value 8 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 8 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/EvictionTimer.java:20: warning: [removal] AccessController in java.security has been deprecated and marked for removal
    [javac] import java.security.AccessController;
    [javac]                     ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/PoolUtils.java:64: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
    [javac]         if (t instanceof ThreadDeath) {
    [javac]                          ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/PoolUtils.java:65: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
    [javac]             throw (ThreadDeath) t;
    [javac]                    ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/CursorableLinkedList.java:198: error: addLast(E#1) in CursorableLinkedList cannot implement addLast(E#2) in List
    [javac]     public boolean addLast(E o) {
    [javac]                    ^
    [javac]   return type boolean is not compatible with void
    [javac]   where E#1,E#2 are type-variables:
    [javac]     E#1 extends Object declared in class CursorableLinkedList
    [javac]     E#2 extends Object declared in interface List
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/CursorableLinkedList.java:186: error: addFirst(E#1) in CursorableLinkedList cannot implement addFirst(E#2) in List
    [javac]     public boolean addFirst(E o) {
    [javac]                    ^
    [javac]   return type boolean is not compatible with void
    [javac]   where E#1,E#2 are type-variables:
    [javac]     E#1 extends Object declared in class CursorableLinkedList
    [javac]     E#2 extends Object declared in interface List
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/CursorableLinkedList.java:1335: error: addLast(E#1) in CursorableSubList cannot implement addLast(E#2) in List
    [javac]     public boolean addLast(E o) {
    [javac]                    ^
    [javac]   return type boolean is not compatible with void
    [javac]   where E#1,E#2 are type-variables:
    [javac]     E#1 extends Object declared in class CursorableSubList
    [javac]     E#2 extends Object declared in interface List
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/CursorableLinkedList.java:1329: error: addFirst(E#1) in CursorableSubList cannot implement addFirst(E#2) in List
    [javac]     public boolean addFirst(E o) {
    [javac]                    ^
    [javac]   return type boolean is not compatible with void
    [javac]   where E#1,E#2 are type-variables:
    [javac]     E#1 extends Object declared in class CursorableSubList
    [javac]     E#2 extends Object declared in interface List
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/EvictionTimer.java:65: warning: [removal] AccessController in java.security has been deprecated and marked for removal
    [javac]             ClassLoader ccl = AccessController.doPrivileged(
    [javac]                               ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/EvictionTimer.java:68: warning: [removal] AccessController in java.security has been deprecated and marked for removal
    [javac]                 AccessController.doPrivileged(new PrivilegedSetTccl(
    [javac]                 ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/EvictionTimer.java:72: warning: [removal] AccessController in java.security has been deprecated and marked for removal
    [javac]                 AccessController.doPrivileged(new PrivilegedSetTccl(ccl));
    [javac]                 ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1204: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                 _factory.activateObject(latch.getPair().value);
    [javac]                                                        ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1206: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                         !_factory.validateObject(latch.getPair().value)) {
    [javac]                                                                 ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1213: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                 return latch.getPair().value;
    [javac]                                       ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1219: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                     _factory.destroyObject(latch.getPair().value);
    [javac]                                                           ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1339: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                 factory.destroyObject(it.next().value);
    [javac]                                                ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1582: warning: [deprecation] tstamp in ObjectTimestampPair has been deprecated
    [javac]             final long idleTimeMilis = System.currentTimeMillis() - pair.tstamp;
    [javac]                                                                         ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1594: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                     _factory.activateObject(pair.value);
    [javac]                                                 ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1600: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                     if(!_factory.validateObject(pair.value)) {
    [javac]                                                     ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1604: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                             _factory.passivateObject(pair.value);
    [javac]                                                          ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1614: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]                     _factory.destroyObject(pair.value);
    [javac]                                                ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1740: warning: [deprecation] tstamp in ObjectTimestampPair has been deprecated
    [javac]             buf.append("\t").append(pair.value).append("\t").append(time - pair.tstamp).append("\n");
    [javac]                                                                                ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/GenericObjectPool.java:1740: warning: [deprecation] value in ObjectTimestampPair has been deprecated
    [javac]             buf.append("\t").append(pair.value).append("\t").append(time - pair.tstamp).append("\n");
    [javac]                                         ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java:523: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
    [javac]             _activeCount.put(key,new Integer(1));
    [javac]                                  ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java:525: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
    [javac]             _activeCount.put(key,new Integer(old.intValue() + 1));
    [javac]                                  ^
    [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java:543: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
    [javac]             _activeCount.put(key, new Integer(active.intValue() - 1));
    [javac]                                   ^
    [javac] 4 errors
    [javac] 25 warnings

BUILD FAILED
/<<PKGBUILDDIR>>/build.xml:112: Compile failed; see the compiler error output for details.

Total time: 1 second
dh_auto_build: error: ant -Duser.name debian dist returned exit code 1
make[1]: *** [debian/rules:7: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:4: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-12-04T08:08:19Z

---------------


-- System Information:
Debian Release: trixie/sid
  APT prefers mantic-updates
  APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-13-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the pkg-java-maintainers mailing list