Skip to content

Commit

Permalink
Merge pull request #66 from briantopping/classloader-fix
Browse files Browse the repository at this point in the history
Fix for #65, got lucky that this was a one-line change. Whew!
  • Loading branch information
romix committed Jan 15, 2016
2 parents 5c1540c + aac5e26 commit 7ca69a0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ class KryoSerializer(val system: ExtendedActorSystem) extends Serializer {
if (settings.IdStrategy == "incremental") new KryoClassResolver(implicitRegistrationLogging)
else new DefaultClassResolver()
val kryo = new ScalaKryo(classResolver, referenceResolver, new DefaultStreamFactory())
kryo.setClassLoader(system.dynamicAccess.classLoader)
// Support deserialization of classes without no-arg constructors
val instStrategy = kryo.getInstantiatorStrategy().asInstanceOf[Kryo.DefaultInstantiatorStrategy]
instStrategy.setFallbackInstantiatorStrategy(new StdInstantiatorStrategy())
Expand Down

0 comments on commit 7ca69a0

Please sign in to comment.