[akka-user] Re: StackOverFlow when using trait

2014-11-08 Thread 何品
The trait seems can't override the actor's lifecycle hook,cause the override will cause the lifecycle hook come to be apart of the trait,which will cause probleam,when we mixin trait to some other actor witch need the hook too. I think the best practice maybe ,1 no override the actor's lifecycle

Re: [akka-user] Re: StackOverFlow when using trait

2014-11-12 Thread Martynas Mickevičius
Hi, this illustrates how traits and self types work in Scala. I do not have deep knowledge of inner workings of Scala, but you can workaround your issue by introducing another trait