File: 01-java9-compatibility.patch

package info (click to toggle)
libjaudiotagger-java 2.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 5,392 kB
  • sloc: java: 62,686; xml: 403; makefile: 4
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
@@ -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())
         {