Fixing ticket #530

This commit is contained in:
Viktor Klang 2010-11-14 16:29:07 +01:00
parent b69982431a
commit 2b9bfa919e
3 changed files with 4 additions and 1 deletions

View file

@ -62,6 +62,8 @@ import scala.reflect.BeanProperty
*/
abstract class UntypedActor extends Actor {
def logger = log.logger //Give the Java guys a break
def getContext(): ActorRef = self
final protected def receive = {

View file

@ -17,7 +17,7 @@ import java.net.UnknownHostException
* @author <a href="http://jonasboner.com">Jonas Bon&#233;r</a>
*/
trait Logging {
@transient lazy val log = Logger(this.getClass.getName)
@transient val log = Logger(this.getClass.getName)
}
/**

View file

@ -7,5 +7,6 @@ import akka.actor.UntypedActor;
*/
public class SampleUntypedActor extends UntypedActor {
public void onReceive(Object message) {
logger().debug("Yay! I haz a message!");
}
}