Lots and lots of work to get things to compile without warnings

This commit is contained in:
Viktor Klang 2012-06-13 15:44:24 +02:00
parent 6b468d8856
commit 4ee2033761
12 changed files with 51 additions and 46 deletions

View file

@ -6,7 +6,7 @@ package akka.actor
import akka.dispatch._
import akka.japi.Creator
import collection.immutable.Stack
import scala.reflect.ClassTag
import akka.routing._
/**
@ -49,8 +49,8 @@ object Props {
*
* Scala API.
*/
def apply[T <: Actor: ClassManifest](): Props =
default.withCreator(implicitly[ClassManifest[T]].erasure.asInstanceOf[Class[_ <: Actor]])
def apply[T <: Actor: ClassTag](): Props =
default.withCreator(implicitly[ClassTag[T]].runtimeClass.asInstanceOf[Class[_ <: Actor]])
/**
* Returns a Props that has default values except for "creator" which will be a function that creates an instance