Closing ticket #1030, removing lots of warnings
This commit is contained in:
parent
fe1051af30
commit
3bc7db0dde
10 changed files with 46 additions and 47 deletions
|
|
@ -70,12 +70,12 @@ object TestActorRef {
|
|||
|
||||
import ReflectiveAccess.{ createInstance, noParams, noArgs }
|
||||
createInstance[T](manifest[T].erasure, noParams, noArgs) match {
|
||||
case r: Right[_, T] ⇒ r.b
|
||||
case l: Left[Exception, _] ⇒ throw new ActorInitializationException(
|
||||
case Right(value) ⇒ value
|
||||
case Left(exception) ⇒ throw new ActorInitializationException(
|
||||
"Could not instantiate Actor" +
|
||||
"\nMake sure Actor is NOT defined inside a class/trait," +
|
||||
"\nif so put it outside the class/trait, f.e. in a companion object," +
|
||||
"\nOR try to change: 'actorOf[MyActor]' to 'actorOf(new MyActor)'.", l.a)
|
||||
"\nOR try to change: 'actorOf[MyActor]' to 'actorOf(new MyActor)'.", exception)
|
||||
}
|
||||
}, address)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue