src/Pure/General/exn.scala
changeset 61558 68b86028e02a
parent 59698 d4ce901f20c5
--- a/src/Pure/General/exn.scala	Tue Nov 03 14:03:44 2015 +0100
+++ b/src/Pure/General/exn.scala	Tue Nov 03 16:35:00 2015 +0100
@@ -58,7 +58,7 @@
     def apply(): Throwable = new InterruptedException
     def unapply(exn: Throwable): Boolean = is_interrupt(exn)
 
-    def expose() { if (Thread.interrupted()) throw apply() }
+    def expose() { if (Thread.interrupted) throw apply() }
     def impose() { Thread.currentThread.interrupt }
 
     def postpone[A](body: => A): Option[A] =
@@ -104,4 +104,3 @@
   def message(exn: Throwable): String =
     user_message(exn) getOrElse (if (is_interrupt(exn)) "Interrupt" else exn.toString)
 }
-