[libjaudiotagger-java] 06/07: Fixed the build failure with Java 9 (Closes: #873223)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Nov 29 09:28:00 UTC 2017


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

ebourg-guest pushed a commit to branch master
in repository libjaudiotagger-java.

commit b4c9fd4509c8c61afb0d8a5e2bbbe9e40e803084
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Nov 29 10:25:43 2017 +0100

    Fixed the build failure with Java 9 (Closes: #873223)
---
 debian/changelog                            |  1 +
 debian/patches/01-java9-compatibility.patch | 14 ++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 36972ee..9911663 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ libjaudiotagger-java (2.0.3-3) UNRELEASED; urgency=medium
   * Moved the package to Git
 
   [ Emmanuel Bourg ]
+  * Fixed the build failure with Java 9 (Closes: #873223)
   * Build with Maven instead of Ant
   * Track and download the new releases from Bitbucket
   * Standards-Version updated to 4.1.1
diff --git a/debian/patches/01-java9-compatibility.patch b/debian/patches/01-java9-compatibility.patch
new file mode 100644
index 0000000..e723871
--- /dev/null
+++ b/debian/patches/01-java9-compatibility.patch
@@ -0,0 +1,14 @@
+Description: Fixes the compilation errors with Java 9
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/src/org/jaudiotagger/audio/mp4/Mp4AtomTree.java
++++ b/src/org/jaudiotagger/audio/mp4/Mp4AtomTree.java
+@@ -204,7 +204,7 @@
+     @SuppressWarnings("unchecked")
+     public void printAtomTree()
+     {
+-        Enumeration<DefaultMutableTreeNode> e = rootNode.preorderEnumeration();
++        Enumeration<DefaultMutableTreeNode> e = (Enumeration) rootNode.preorderEnumeration();
+         DefaultMutableTreeNode nextNode;
+         while (e.hasMoreElements())
+         {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..12bc5e0
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-java9-compatibility.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libjaudiotagger-java.git



More information about the pkg-java-commits mailing list