From 2fb619bffeba4213bc114be4ad695ae239100b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bon=C3=A9r?= Date: Mon, 26 Apr 2010 08:25:52 +0200 Subject: [PATCH] Made ActiveObject non-advisable in AW terms --- akka-core/src/main/scala/actor/ActiveObject.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-core/src/main/scala/actor/ActiveObject.scala b/akka-core/src/main/scala/actor/ActiveObject.scala index 839ebb1c3e..f80dd2db42 100644 --- a/akka-core/src/main/scala/actor/ActiveObject.scala +++ b/akka-core/src/main/scala/actor/ActiveObject.scala @@ -271,7 +271,7 @@ object ActiveObject { } private[akka] def newInstance[T](target: Class[T], actor: Dispatcher, remoteAddress: Option[InetSocketAddress], timeout: Long): T = { - val proxy = Proxy.newInstance(target, false, true) + val proxy = Proxy.newInstance(target, false, false) actor.initialize(target, proxy) actor.timeout = timeout if (remoteAddress.isDefined) { @@ -283,7 +283,7 @@ object ActiveObject { } private[akka] def newInstance[T](intf: Class[T], target: AnyRef, actor: Dispatcher, remoteAddress: Option[InetSocketAddress], timeout: Long): T = { - val proxy = Proxy.newInstance(Array(intf), Array(target), false, true) + val proxy = Proxy.newInstance(Array(intf), Array(target), false, false) actor.initialize(target.getClass, target) actor.timeout = timeout if (remoteAddress.isDefined) {