Making sure that akka-actor and akka-actor-tests compile and tests are green
This commit is contained in:
parent
7f429ed63e
commit
d08489c17b
3 changed files with 11 additions and 10 deletions
|
|
@ -17,7 +17,7 @@ import java.util.LinkedList;
|
||||||
import java.lang.Iterable;
|
import java.lang.Iterable;
|
||||||
import java.util.concurrent.CountDownLatch;
|
import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import static akka.japi.Util.manifest;
|
import static akka.japi.Util.classTag;
|
||||||
|
|
||||||
import akka.testkit.AkkaSpec;
|
import akka.testkit.AkkaSpec;
|
||||||
|
|
||||||
|
|
@ -287,7 +287,7 @@ public class JavaFutureTests {
|
||||||
@Test
|
@Test
|
||||||
public void mapToMustBeCallable() throws Exception {
|
public void mapToMustBeCallable() throws Exception {
|
||||||
Promise<Object> p = Futures.promise(system.dispatcher());
|
Promise<Object> p = Futures.promise(system.dispatcher());
|
||||||
Future<String> f = p.future().mapTo(manifest(String.class));
|
Future<String> f = p.future().mapTo(classTag(String.class));
|
||||||
Duration d = Duration.create(1, TimeUnit.SECONDS);
|
Duration d = Duration.create(1, TimeUnit.SECONDS);
|
||||||
p.success("foo");
|
p.success("foo");
|
||||||
Await.ready(p, d);
|
Await.ready(p, d);
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import java.util.concurrent.{ ExecutionException, Callable, TimeoutException }
|
||||||
import java.util.concurrent.atomic.{ AtomicInteger }
|
import java.util.concurrent.atomic.{ AtomicInteger }
|
||||||
import akka.pattern.AskTimeoutException
|
import akka.pattern.AskTimeoutException
|
||||||
import scala.util.DynamicVariable
|
import scala.util.DynamicVariable
|
||||||
import scala.runtime.BoxedUnit
|
import scala.runtime.{ BoxedUnit, AbstractPartialFunction }
|
||||||
|
|
||||||
object Await {
|
object Await {
|
||||||
|
|
||||||
|
|
@ -952,7 +952,7 @@ final class KeptPromise[T](suppliedValue: Either[Throwable, T])(implicit val exe
|
||||||
*/
|
*/
|
||||||
object japi {
|
object japi {
|
||||||
@deprecated("Do not use this directly, use subclasses of this", "2.0")
|
@deprecated("Do not use this directly, use subclasses of this", "2.0")
|
||||||
class CallbackBridge[-T] extends PartialFunction[T, BoxedUnit] {
|
class CallbackBridge[-T] extends AbstractPartialFunction[T, BoxedUnit] {
|
||||||
override final def isDefinedAt(t: T): Boolean = true
|
override final def isDefinedAt(t: T): Boolean = true
|
||||||
override final def apply(t: T): BoxedUnit = {
|
override final def apply(t: T): BoxedUnit = {
|
||||||
internal(t)
|
internal(t)
|
||||||
|
|
@ -962,7 +962,7 @@ object japi {
|
||||||
}
|
}
|
||||||
|
|
||||||
@deprecated("Do not use this directly, use 'Recover'", "2.0")
|
@deprecated("Do not use this directly, use 'Recover'", "2.0")
|
||||||
class RecoverBridge[+T] extends PartialFunction[Throwable, T] {
|
class RecoverBridge[+T] extends AbstractPartialFunction[Throwable, T] {
|
||||||
override final def isDefinedAt(t: Throwable): Boolean = true
|
override final def isDefinedAt(t: Throwable): Boolean = true
|
||||||
override final def apply(t: Throwable): T = internal(t)
|
override final def apply(t: Throwable): T = internal(t)
|
||||||
protected def internal(result: Throwable): T = null.asInstanceOf[T]
|
protected def internal(result: Throwable): T = null.asInstanceOf[T]
|
||||||
|
|
@ -976,10 +976,11 @@ object japi {
|
||||||
|
|
||||||
@deprecated("Do not use this directly, use subclasses of this", "2.0")
|
@deprecated("Do not use this directly, use subclasses of this", "2.0")
|
||||||
class UnitFunctionBridge[-T] extends (T ⇒ BoxedUnit) {
|
class UnitFunctionBridge[-T] extends (T ⇒ BoxedUnit) {
|
||||||
override final def apply(t: T): BoxedUnit = {
|
final def apply$mcLJ$sp(l: Long): BoxedUnit = { internal(l.asInstanceOf[T]); BoxedUnit.UNIT }
|
||||||
internal(t)
|
final def apply$mcLI$sp(i: Int): BoxedUnit = { internal(i.asInstanceOf[T]); BoxedUnit.UNIT }
|
||||||
BoxedUnit.UNIT
|
final def apply$mcLF$sp(f: Float): BoxedUnit = { internal(f.asInstanceOf[T]); BoxedUnit.UNIT }
|
||||||
}
|
final def apply$mcLD$sp(d: Double): BoxedUnit = { internal(d.asInstanceOf[T]); BoxedUnit.UNIT }
|
||||||
|
override final def apply(t: T): BoxedUnit = { internal(t); BoxedUnit.UNIT }
|
||||||
protected def internal(result: T): Unit = ()
|
protected def internal(result: T): Unit = ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ class Serialization(val system: ExtendedActorSystem) extends Extension {
|
||||||
*/
|
*/
|
||||||
private[akka] val bindings: Seq[ClassSerializer] = {
|
private[akka] val bindings: Seq[ClassSerializer] = {
|
||||||
val configuredBindings = for ((k: String, v: String) ← settings.SerializationBindings if v != "none") yield {
|
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))
|
(c, serializers(v))
|
||||||
}
|
}
|
||||||
sort(configuredBindings)
|
sort(configuredBindings)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue