fix CTD vs. RepointableRef by swallowing exceptions during send
- it was always intended that tell() (and sendSystemMessage()) shall not throw any exceptions - this is implemented by swallowing in ActorCell (suspend/resume/restart/stop/!/sendSystemMessage) and in RemoteActorRef (!/sendSystemMessage) - current implementation uses a normal method, which adds overhead but keeps the code in one place (ActorCell.catchingSend); this is a great opportunity for making use of macros
This commit is contained in:
parent
f7ea9bf3dd
commit
c1c05ef95e
8 changed files with 43 additions and 28 deletions
|
|
@ -269,8 +269,8 @@ class VerifySerializabilitySpec extends AkkaSpec(VerifySerializabilitySpec.conf)
|
|||
val a = system.actorOf(Props[FooActor])
|
||||
Await.result(a ? "pigdog", timeout.duration) must be("pigdog")
|
||||
|
||||
intercept[NotSerializableException] {
|
||||
Await.result(a ? new AnyRef, timeout.duration)
|
||||
EventFilter[NotSerializableException](occurrences = 1) intercept {
|
||||
a ! (new AnyRef)
|
||||
}
|
||||
system stop a
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue