[libxml-commons-resolver1.1-java] 02/04: Fixed the build failure with Java 9 (Closes: #874661)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Nov 17 14:25:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libxml-commons-resolver1.1-java.

commit dad8a68bf63942928c498f5c6dc2e394ac199e1d
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Nov 17 15:21:08 2017 +0100

    Fixed the build failure with Java 9 (Closes: #874661)
---
 debian/patches/java5-compatibility.patch | 19 +++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/java5-compatibility.patch b/debian/patches/java5-compatibility.patch
new file mode 100644
index 0000000..dc068e7
--- /dev/null
+++ b/debian/patches/java5-compatibility.patch
@@ -0,0 +1,19 @@
+Description: Fixed the build failure with Java 5
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/src/org/apache/xml/resolver/Catalog.java
++++ b/src/org/apache/xml/resolver/Catalog.java
+@@ -1172,10 +1172,10 @@
+    */
+   public Iterator getPublicIDs() {
+     Vector v = new Vector();
+-    Enumeration enum = catalogEntries.elements();
++    Enumeration enumeration = catalogEntries.elements();
+     
+-    while (enum.hasMoreElements()) {
+-	CatalogEntry e = (CatalogEntry) enum.nextElement();
++    while (enumeration.hasMoreElements()) {
++	CatalogEntry e = (CatalogEntry) enumeration.nextElement();
+ 	if (e.getEntryType() == PUBLIC) {
+ 	    v.add(e.getEntryArg(0));
+ 	}
diff --git a/debian/patches/series b/debian/patches/series
index b61736a..2f2946f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 nb-new-api.diff
 nb-extra.diff
 catalog.diff
+java5-compatibility.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libxml-commons-resolver1.1-java.git



More information about the pkg-java-commits mailing list