Minor corrections after review

This commit is contained in:
Viktor Klang 2011-12-08 17:45:02 +01:00
parent 712805baec
commit 3b5d45feac
2 changed files with 4 additions and 4 deletions

View file

@ -106,7 +106,7 @@ class SerializeSpec extends AkkaSpec(SerializeSpec.serializationConf) {
}))
a ! new ObjectOutputStream(new ByteArrayOutputStream())
expectMsg("pass")
a.stop
a.stop()
}
"serialize DeadLetterActorRef" in {

View file

@ -112,6 +112,9 @@ trait ActorContext extends ActorRefFactory {
* @return the provided ActorRef
*/
def unwatch(subject: ActorRef): ActorRef
final protected def writeObject(o: ObjectOutputStream): Unit =
throw new NotSerializableException("ActorContext is not serializable!")
}
trait UntypedActorContext extends ActorContext {
@ -603,7 +606,4 @@ private[akka] final class ActorCell(
lookupAndSetField(a.getClass, a, "self", self)
}
}
final protected def writeObject(o: ObjectOutputStream): Unit =
throw new NotSerializableException("ActorCell/ActorContext is not serializable!")
}