--- /dev/null
+#!/bin/sh
+git rm -f lib/jsapi.exe lib/jsapi.sh lib/README.txt
+rm -f lib/jsapi.exe lib/jsapi.sh lib/README.txt
+freetts (1.2.2-5.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * build with openjdk-8 instead of default-jdk
+ * Disable custom loadClass in VoiceManager
+
+ -- Keith Packard <keithp@keithp.com> Thu, 12 Apr 2018 10:31:23 -0700
+
freetts (1.2.2-5) unstable; urgency=low
* update to policy 4.1.3
Source: freetts
Priority: optional
Maintainer: Bdale Garbee <bdale@gag.com>
-Build-Depends: debhelper (>= 9), default-jdk, ant, ant-optional, junit4, javahelper
+Build-Depends: debhelper (>= 9), openjdk-8-jdk, ant, ant-optional, junit4, javahelper
Standards-Version: 4.1.3
Section: java
Vcs-Git: git://git.gag.com/debian/freetts
--- /dev/null
+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;
+ }
++ */
+ }
+
+ /**
license.terms-missing.diff
debian-build-target.diff
pulse-audio-compat.diff
+disable-custom-loadclass.diff
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-export JAVA_HOME=/usr/lib/jvm/default-java
+export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
#export CLASSPATH=
%: