File: 01-java9-compatibility.patch

package info (click to toggle)
libjaudiotagger-java 3.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,944 kB
  • sloc: java: 98,694; xml: 249; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 581 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixes the compilation errors with Java 9
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/org/jaudiotagger/audio/mp4/Mp4AtomTree.java
+++ b/src/org/jaudiotagger/audio/mp4/Mp4AtomTree.java
@@ -250,7 +250,7 @@
     @SuppressWarnings("unchecked")
     public void printAtomTree()
     {
-        Enumeration<DefaultMutableTreeNode> e = rootNode.preorderEnumeration();
+        Enumeration<DefaultMutableTreeNode> e = (Enumeration) rootNode.preorderEnumeration();
         DefaultMutableTreeNode nextNode;
         while (e.hasMoreElements())
         {