Import Debian changes 1.2.2-5.1
[debian/freetts] / debian / patches / disable-custom-loadclass.diff
diff --git a/debian/patches/disable-custom-loadclass.diff b/debian/patches/disable-custom-loadclass.diff
new file mode 100644 (file)
index 0000000..af8e8c0
--- /dev/null
@@ -0,0 +1,31 @@
+Origin: https://sourceforge.net/p/freetts/discussion/137670/thread/938f4b85/
+Last-Update: 2018-04-12
+Description: Disable custom loadClass method
+ Custom loadClass in VoiceManager breaks under Java 9
+ .
+ freetts (1.2.2-5.1) unstable; urgency=low
+ .
+   * Disable custom loadClass in VoiceManager
+Author: Keith Packard <keithp@keithp.com>
+
+---
+
+--- freetts-1.2.2.orig/com/sun/speech/freetts/VoiceManager.java
++++ freetts-1.2.2/com/sun/speech/freetts/VoiceManager.java
+@@ -661,7 +661,7 @@ class DynamicClassLoader extends URLClas
+     /**
+      * {@inheritDoc}
+-     */
++     *
+     public Class loadClass(final String name)
+         throws ClassNotFoundException {
+         Class loadedClass = findLoadedClass(name);
+@@ -678,6 +678,7 @@ class DynamicClassLoader extends URLClas
+         }
+         return loadedClass;
+     }
++    */
+ }
+ /**