summaryrefslogtreecommitdiff
path: root/test/files/jvm/actor-termination.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/actor-termination.scala')
-rw-r--r--test/files/jvm/actor-termination.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/jvm/actor-termination.scala b/test/files/jvm/actor-termination.scala
index 19dfaf8e17..d8e44a2797 100644
--- a/test/files/jvm/actor-termination.scala
+++ b/test/files/jvm/actor-termination.scala
@@ -5,9 +5,14 @@ import scala.actors.Actor
object Test {
def main(args: Array[String]) {
Actor.actor {
+ try {
println("I'm going to make you wait.")
Thread.sleep(5000)
println("Ok, I'm done.")
+ } catch {
+ case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] =>
+ e.printStackTrace()
+ }
}
}
}