src/Pure/System/isabelle_system.scala
changeset 81645 3c32d1ac1de9
parent 80451 e0bd9e4811ad
child 81732 60f21b6e4f57
--- a/src/Pure/System/isabelle_system.scala	Sun Dec 22 14:11:31 2024 +0100
+++ b/src/Pure/System/isabelle_system.scala	Sun Dec 22 14:13:21 2024 +0100
@@ -390,7 +390,7 @@
   /* JVM shutdown hook */
 
   def create_shutdown_hook(body: => Unit): Thread = {
-    val shutdown_hook = Isabelle_Thread.create(new Runnable { def run: Unit = body })
+    val shutdown_hook = Isabelle_Thread.create(new Runnable { def run(): Unit = body })
 
     try { Runtime.getRuntime.addShutdownHook(shutdown_hook) }
     catch { case _: IllegalStateException => }