diff --git a/0001-Port-to-Java-11.patch b/0001-Port-to-Java-11.patch new file mode 100644 index 0000000..efbac70 --- /dev/null +++ b/0001-Port-to-Java-11.patch @@ -0,0 +1,13 @@ +diff --git a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java +index dfde362..00c5d26 100644 +--- a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java ++++ b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java +@@ -1116,7 +1116,7 @@ public abstract class AbstractTestCollection extends AbstractTestObject { + verify(); + + try { +- array = collection.toArray(null); ++ array = collection.toArray((Object[])null); + fail("toArray(null) should raise NPE"); + } catch (NullPointerException e) { + // expected diff --git a/apache-commons-collections.spec b/apache-commons-collections.spec index f16baf0..a017c3f 100644 --- a/apache-commons-collections.spec +++ b/apache-commons-collections.spec @@ -3,13 +3,14 @@ Name: apache-%{short_name} Version: 3.2.2 -Release: 16%{?dist} +Release: 17%{?dist} Summary: Provides new interfaces, implementations and utilities for Java Collections License: ASL 2.0 URL: http://commons.apache.org/%{base_name}/ Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz Patch0: 0001-Port-to-Java-8.patch +Patch1: 0001-Port-to-Java-11.patch BuildArch: noarch @@ -56,6 +57,7 @@ find . -name "*.jar" -exec rm -f {} \; find . -name "*.class" -exec rm -f {} \; %patch0 -p1 +%patch1 -p1 # Fix file eof sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt @@ -82,6 +84,9 @@ sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt %changelog +* Thu Jun 25 2020 Roland Grunberg - 3.2.2-17 +- Fix ambiguous reference in AbstractTestCollection to build on Java 11. + * Tue Jan 28 2020 Fedora Release Engineering - 3.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild