diff --git a/akka-actor/src/main/scala/Errtest.scala b/akka-actor/src/main/scala/Errtest.scala deleted file mode 100644 index c778e17ebe..0000000000 --- a/akka-actor/src/main/scala/Errtest.scala +++ /dev/null @@ -1,49 +0,0 @@ - -import akka.actor._ -import com.typesafe.config.ConfigFactory -import akka.event.LoggingReceive -import scala.annotation.tailrec - -object Errtest extends App { - - val config = ConfigFactory.parseString(""" - akka.loglevel = DEBUG - akka.actor.debug { - receive = on - lifecycle = on - } - """) - - val sys = ActorSystem("ErrSys", config) - val top = sys.actorOf(Props[Top], name = "top") - - for (n ← 1 to 100) { - top ! "run " + n - Thread.sleep(1000) - } -} - -class Top extends Actor { - var c: ActorRef = _ - def receive = LoggingReceive { - case x ⇒ - c = context.actorOf(Props[Child]); - c ! "ok" - } -} - -class Child extends Actor { - - //throw new Error("Simulated ERR") - blowUp(0) - - //not @tailrec - private final def blowUp(n: Long): Long = { - blowUp(n + 1) + 1 - } - - def receive = LoggingReceive { - case x ⇒ - //context.system.shutdown(); - } -} \ No newline at end of file