Skip to content

Commit a5e973a

Browse files
committed
Merge pull request scala#2376 from retronym/merge/v2.11.0-M2-181-gc57c4f8-to-java7
Merge v2.11.0-m2-181-gc57c4f8 to java7
2 parents a0a79e9 + 8b53d58 commit a5e973a

File tree

1,343 files changed

+32455
-22356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,343 files changed

+32455
-22356
lines changed

build.xml

100644100755
Lines changed: 1409 additions & 2387 deletions
Large diffs are not rendered by default.

docs/examples/actors/pingpong.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ case object Stop
1313
* @author Philipp Haller
1414
* @version 1.1
1515
*/
16-
object pingpong extends Application {
16+
object pingpong extends App {
1717
val pong = new Pong
1818
val ping = new Ping(100000, pong)
1919
ping.start

src/actors/scala/actors/AbstractActor.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import scala.language.higherKinds
1515
*
1616
* @define actor actor
1717
*/
18+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
1819
trait AbstractActor extends OutputChannel[Any] with CanReply[Any, Any] {
1920

2021
type Future[+R] <: scala.actors.Future[R]

src/actors/scala/actors/Actor.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import scala.language.implicitConversions
1818
*
1919
* @author Philipp Haller
2020
*/
21+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
2122
object Actor extends Combinators {
2223

2324
/** State of an actor.
@@ -398,6 +399,7 @@ object Actor extends Combinators {
398399
* @define channel actor's mailbox
399400
*/
400401
@SerialVersionUID(-781154067877019505L)
402+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
401403
trait Actor extends InternalActor with ReplyReactor {
402404

403405
override def start(): Actor = synchronized {

src/actors/scala/actors/ActorRef.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ trait ActorRef {
4545
* This is what is used to complete a Future that is returned from an ask/? call,
4646
* when it times out.
4747
*/
48+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
4849
class AskTimeoutException(message: String, cause: Throwable) extends TimeoutException {
4950
def this(message: String) = this(message, null: Throwable)
5051
}
51-
52+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
5253
object PoisonPill

src/actors/scala/actors/CanReply.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import scala.language.higherKinds
1717
*
1818
* @define actor `CanReply`
1919
*/
20+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
2021
trait CanReply[-T, +R] {
2122

2223
type Future[+P] <: () => P

src/actors/scala/actors/Channel.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import scala.concurrent.SyncVar
2323
*
2424
* @author Philipp Haller
2525
*/
26+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
2627
case class ! [a](ch: Channel[a], msg: a)
2728

2829
/**
@@ -34,6 +35,7 @@ case class ! [a](ch: Channel[a], msg: a)
3435
* @define actor channel
3536
* @define channel channel
3637
*/
38+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
3739
class Channel[Msg](val receiver: InternalActor) extends InputChannel[Msg] with OutputChannel[Msg] with CanReply[Msg, Any] {
3840

3941
type Future[+P] = scala.actors.Future[P]

src/actors/scala/actors/DaemonActor.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import scheduler.DaemonScheduler
1818
*
1919
* @author Erik Engbrecht
2020
*/
21+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
2122
trait DaemonActor extends Actor {
2223
override def scheduler: IScheduler = DaemonScheduler
2324
}

src/actors/scala/actors/Debug.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ package scala.actors
1414
*
1515
* @author Philipp Haller
1616
*/
17+
@deprecated("Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
1718
object Debug extends Logger("") {}
1819

1920
private[actors] class Logger(tag: String) {

src/actors/scala/actors/Future.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import scala.concurrent.SyncVar
2121
*
2222
* @author Philipp Haller
2323
*/
24+
@deprecated("Use the scala.concurrent.Future instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
2425
abstract class Future[+T] extends Responder[T] with Function0[T] {
2526

2627
@volatile
@@ -107,6 +108,7 @@ private class FutureActor[T](fun: SyncVar[T] => Unit, channel: Channel[T]) exten
107108
*
108109
* @author Philipp Haller
109110
*/
111+
@deprecated("Use the object scala.concurrent.Future instead. For migration from the scala.actors package refer to the Actors Migration Guide.", "2.11.0")
110112
object Futures {
111113

112114
/** Arranges for the asynchronous execution of `body`,

0 commit comments

Comments
 (0)