Making sure that akka-actor and akka-actor-tests compile and tests are green

This commit is contained in:
Viktor Klang 2012-06-25 13:56:11 +02:00
parent 7f429ed63e
commit d08489c17b
3 changed files with 11 additions and 10 deletions

View file

@ -145,7 +145,7 @@ class Serialization(val system: ExtendedActorSystem) extends Extension {
*/
private[akka] val bindings: Seq[ClassSerializer] = {
val configuredBindings = for ((k: String, v: String) settings.SerializationBindings if v != "none") yield {
val c = system.dynamicAccess.getClassFor(k).fold(throw _, identity[Class[_]])
val c = system.dynamicAccess.getClassFor[Any](k).fold(throw _, identity[Class[_]])
(c, serializers(v))
}
sort(configuredBindings)