diff options
Diffstat (limited to 'test/files/jvm/replyreactor.scala')
-rw-r--r-- | test/files/jvm/replyreactor.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/jvm/replyreactor.scala b/test/files/jvm/replyreactor.scala index fb915cf3f9..0cecf29ec7 100644 --- a/test/files/jvm/replyreactor.scala +++ b/test/files/jvm/replyreactor.scala @@ -4,16 +4,22 @@ object Test { def main(args: Array[String]) { val a = new ReplyReactor { def act() { + try { react { case 'hello => sender ! 'hello } + } catch { + case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] => + e.printStackTrace() + } } } a.start() val b = new ReplyReactor { def act() { + try { react { case r: ReplyReactor => r ! 'hello @@ -22,6 +28,10 @@ object Test { println(any) } } + } catch { + case e: Throwable if !e.isInstanceOf[scala.util.control.ControlThrowable] => + e.printStackTrace() + } } } b.start() |