--- a/src/Pure/System/isabelle_system.scala Wed Apr 08 13:14:05 2020 +0200
+++ b/src/Pure/System/isabelle_system.scala Wed Apr 08 14:06:26 2020 +0200
@@ -380,7 +380,9 @@
def err(msg: String): Nothing =
error("Bad entry " + quote(name) + " in " + variable + "\n" + msg)
- try { Class.forName(name).asInstanceOf[Class[A]].newInstance() }
+ try {
+ Class.forName(name).asInstanceOf[Class[A]].getDeclaredConstructor().newInstance()
+ }
catch {
case _: ClassNotFoundException => err("Class not found")
case exn: Throwable => err(Exn.message(exn))