From 739583e384e3d97c8f04d99e70be25cd53b92547 Mon Sep 17 00:00:00 2001 From: Michael Pilquist Date: Thu, 15 Nov 2012 21:28:40 -0500 Subject: [PATCH] Fix bug where ActorSystems created via OsgiActorSystemFactory(ctx).createActorSystem fail to load akka.event classes unless bundle imports akka.event package (cherry picked from commit 3070343a5de78cd7b363e93a09d56565b1e6df9b) --- akka-osgi/src/main/scala/akka/osgi/OsgiActorSystemFactory.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-osgi/src/main/scala/akka/osgi/OsgiActorSystemFactory.scala b/akka-osgi/src/main/scala/akka/osgi/OsgiActorSystemFactory.scala index 608b80403b..859d671ed3 100644 --- a/akka-osgi/src/main/scala/akka/osgi/OsgiActorSystemFactory.scala +++ b/akka-osgi/src/main/scala/akka/osgi/OsgiActorSystemFactory.scala @@ -17,7 +17,7 @@ class OsgiActorSystemFactory(val context: BundleContext) { /* * Classloader that delegates to the bundle for which the factory is creating an ActorSystem */ - private val classloader = BundleDelegatingClassLoader(context) + private val classloader = new BundleDelegatingClassLoader(context.getBundle, Some(classOf[ActorSystem].getClassLoader)) /** * Creates the [[akka.actor.ActorSystem]], using the name specified