Source: libcommons-collections3-java Version: 3.2.2-2 Severity: important Tags: ftbfs User: debian-j...@lists.debian.org Usertags: default-java21
Dear Maintainers, The package libcommons-collections3-java ftbfs with default Java 21. The relevant part of the build log: --------------- compile: [mkdir] Created dir: /<<PKGBUILDDIR>>/build/classes [javac] /<<PKGBUILDDIR>>/build.xml:129: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 273 source files to /<<PKGBUILDDIR>>/build/classes [javac] Using ant.build.javac.target 6 is no longer supported, switching to 8 [javac] Using ant.build.javac.target 6 is no longer supported, switching to 8 [javac] Using ant.build.javac.source 6 is no longer supported, switching to 8 [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/collections/ExtendedProperties.java:29: 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/collections/functors/FunctorUtils.java:19: 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/collections/BeanMap.java:87: warning: [removal] Character(char) in Character has been deprecated and marked for removal [javac] return new Character( input.toString().charAt( 0 ) ); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/CollectionUtils.java:61: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] private static Integer INTEGER_ONE = new Integer(1); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/CollectionUtils.java:236: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] count.put(obj,new Integer(c.intValue() + 1)); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/CollectionUtils.java:715: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] return index(obj, new Integer(idx)); [javac] ^ [javac] /<<PKGBUILDDIR>>/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] /<<PKGBUILDDIR>>/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 [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/CursorableLinkedList.java:1306: error: addLast(Object) in CursorableSubList 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] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/CursorableLinkedList.java:1301: error: addFirst(Object) in CursorableSubList 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 [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/DefaultMapBag.java:93: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] _map.put(object, new Integer(count)); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/DefaultMapBag.java:261: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] _map.put(object, new Integer(count - nCopies)); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:172: warning: [removal] AccessController in java.security has been deprecated and marked for removal [javac] fileSeparator = (String) AccessController.doPrivileged( [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1170: warning: [removal] Boolean(boolean) in Boolean has been deprecated and marked for removal [javac] return getBoolean(key, new Boolean(defaultValue)).booleanValue(); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1192: warning: [removal] Boolean(String) in Boolean has been deprecated and marked for removal [javac] Boolean b = new Boolean(s); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1264: warning: [removal] Byte(byte) in Byte has been deprecated and marked for removal [javac] return getByte(key, new Byte(defaultValue)).byteValue(); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1286: warning: [removal] Byte(String) in Byte has been deprecated and marked for removal [javac] Byte b = new Byte((String) value); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1334: warning: [removal] Short(short) in Short has been deprecated and marked for removal [javac] return getShort(key, new Short(defaultValue)).shortValue(); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1356: warning: [removal] Short(String) in Short has been deprecated and marked for removal [javac] Short s = new Short((String) value); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1454: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal [javac] Integer i = new Integer((String) value); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1502: warning: [removal] Long(long) in Long has been deprecated and marked for removal [javac] return getLong(key, new Long(defaultValue)).longValue(); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1524: warning: [removal] Long(String) in Long has been deprecated and marked for removal [javac] Long l = new Long((String) value); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1572: warning: [removal] Float(float) in Float has been deprecated and marked for removal [javac] return getFloat(key, new Float(defaultValue)).floatValue(); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1594: warning: [removal] Float(String) in Float has been deprecated and marked for removal [javac] Float f = new Float((String) value); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1642: warning: [removal] Double(double) in Double has been deprecated and marked for removal [javac] return getDouble(key, new Double(defaultValue)).doubleValue(); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/ExtendedProperties.java:1664: warning: [removal] Double(String) in Double has been deprecated and marked for removal [javac] Double d = new Double((String) value); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/MapUtils.java:170: warning: [removal] Boolean(String) in Boolean has been deprecated and marked for removal [javac] return new Boolean((String) answer); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/MapUtils.java:231: warning: [removal] Byte(byte) in Byte has been deprecated and marked for removal [javac] return new Byte(answer.byteValue()); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/MapUtils.java:250: warning: [removal] Short(short) in Short has been deprecated and marked for removal [javac] return new Short(answer.shortValue()); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/MapUtils.java:269: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] return new Integer(answer.intValue()); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/MapUtils.java:288: warning: [removal] Long(long) in Long has been deprecated and marked for removal [javac] return new Long(answer.longValue()); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/MapUtils.java:307: warning: [removal] Float(float) in Float has been deprecated and marked for removal [javac] return new Float(answer.floatValue()); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/MapUtils.java:326: warning: [removal] Double(double) in Double has been deprecated and marked for removal [javac] return new Double(answer.doubleValue()); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/comparators/FixedOrderComparator.java:194: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal [javac] Object position = map.put(obj, new Integer(counter++)); [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/functors/FunctorUtils.java:173: warning: [removal] AccessController in java.security has been deprecated and marked for removal [javac] (String) AccessController.doPrivileged(new PrivilegedAction() { [javac] ^ [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/list/AbstractLinkedList.java:301: error: addLast(Object) in AbstractLinkedList 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] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/list/AbstractLinkedList.java:296: error: addFirst(Object) in AbstractLinkedList 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 [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/list/CursorableLinkedList.java:63: error: addLast(Object) in AbstractLinkedList cannot implement addLast(E) in List [javac] public class CursorableLinkedList extends AbstractLinkedList implements Serializable { [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] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/list/NodeCachingLinkedList.java:47: error: addLast(Object) in AbstractLinkedList cannot implement addLast(E) in List [javac] public class NodeCachingLinkedList extends AbstractLinkedList implements Serializable { [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] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/list/SetUniqueList.java:302: warning: [deprecation] newInstance() in Class has been deprecated [javac] subSet = (Set) set.getClass().newInstance(); [javac] ^ [javac] where T is a type-variable: [javac] T extends Object declared in class Class [javac] /<<PKGBUILDDIR>>/src/java/org/apache/commons/collections/map/MultiValueMap.java:434: warning: [deprecation] newInstance() in Class has been deprecated [javac] return clazz.newInstance(); [javac] ^ [javac] where T is a type-variable: [javac] T extends Object declared in class Class [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 8 errors [javac] 37 warnings BUILD FAILED /<<PKGBUILDDIR>>/build.xml:129: Compile failed; see the compiler error output for details. Total time: 2 seconds dh_auto_build: error: ant -propertyfile ./debian/ant.properties -Duser.name debian jar javadoc -Dlastmodified=1701682943988 -Dant.build.javac.source=6 -Dant.build.javac.target=6 returned exit code 1 make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:8: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 --------------- -- 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