Adding migration docs for the Either => Try changes as well as cleaning up a couple of imports

This commit is contained in:
Viktor Klang 2012-09-06 11:59:22 +02:00
parent cfc9c3c27d
commit 5c5d8674f2
2 changed files with 15 additions and 3 deletions

View file

@ -20,7 +20,7 @@ import scala.runtime.NonLocalReturnControl
import akka.pattern.ask
import java.lang.{ IllegalStateException, ArithmeticException }
import java.util.concurrent._
import scala.reflect.ClassTag
import scala.reflect.{ ClassTag, classTag }
import scala.util.{ Failure, Success, Try }
object FutureSpec {
@ -260,7 +260,7 @@ class FutureSpec extends AkkaSpec with Checkers with BeforeAndAfterAll with Defa
} yield b + "-" + c
Await.result(future1, timeout.duration) must be("10-14")
assert(checkType(future1, scala.reflect.classTag[String]))
assert(checkType(future1, classTag[String]))
intercept[ClassCastException] { Await.result(future2, timeout.duration) }
system.stop(actor)
}
@ -479,7 +479,7 @@ class FutureSpec extends AkkaSpec with Checkers with BeforeAndAfterAll with Defa
}
}))
val oddFutures = List.fill(100)(oddActor ? 'GetNext mapTo scala.reflect.classTag[Int])
val oddFutures = List.fill(100)(oddActor ? 'GetNext mapTo classTag[Int])
assert(Await.result(Future.sequence(oddFutures), timeout.duration).sum === 10000)
system.stop(oddActor)

View file

@ -181,6 +181,18 @@ v2.1::
}
}, ec);
API changes of DynamicAccess
============================
All methods with scala.Either[Throwable, X] have been changed to used scala.util.Try[X].
DynamicAccess.withErrorHandling has been removed since scala.util.Try now fulfills that role.
API changes of Serialization
============================
All methods with scala.Either[Throwable, X] have been changed to used scala.util.Try[X].
Empty Props
===========