diff options
author | Paul Phillips <paulp@improving.org> | 2011-10-03 01:28:04 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-10-03 01:28:04 +0000 |
commit | beadafa2d83a539dae8f969b9789f896346484ec (patch) | |
tree | 90c69a49397cdb59120d59307b843c54c8f68908 /test/files/presentation/akka.check | |
parent | 55109d0d253c7e89660f1b61d17408648c0c53a4 (diff) | |
download | scala-beadafa2d83a539dae8f969b9789f896346484ec.tar.gz scala-beadafa2d83a539dae8f969b9789f896346484ec.tar.bz2 scala-beadafa2d83a539dae8f969b9789f896346484ec.zip |
Selective dealiasing when printing errors.
*** Important note for busy commit log skimmers ***
Symbol method "fullName" has been trying to serve the dual role of "how
to print a symbol" and "how to find a class file." It cannot serve both
these roles simultaneously, primarily because of package objects but
other little things as well. Since in the majority of situations we want
the one which corresponds to the idealized scala world, not the grubby
bytecode, I went with that for fullName. When you require the path to a
class (e.g. you are calling Class.forName) you should use javaClassName.
package foo { package object bar { class Bippy } }
If sym is Bippy's symbol, then
sym.fullName == foo.bar.Bippy
sym.javaClassName == foo.bar.package.Bippy
*** End important note ***
There are many situations where we (until now) forewent revealing
everything we knew about a type mismatch. For instance, this isn't very
helpful of scalac (at least in those more common cases where you didn't
define type X on the previous repl line.)
scala> type X = Int
defined type alias X
scala> def f(x: X): Byte = x
<console>:8: error: type mismatch;
found : X
required: Byte
def f(x: X): Byte = x
^
Now it says:
found : X
(which expands to) Int
required: Byte
def f(x: X): Byte = x
^
In addition I rearchitected a number of methods involving:
- finding a symbol's owner
- calculating a symbol's name
- determining whether to print a prefix
No review.
Diffstat (limited to 'test/files/presentation/akka.check')
-rw-r--r-- | test/files/presentation/akka.check | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/test/files/presentation/akka.check b/test/files/presentation/akka.check index 44d40be17a..d24d3d5711 100644 --- a/test/files/presentation/akka.check +++ b/test/files/presentation/akka.check @@ -15,12 +15,12 @@ retrieved 43 members `method !=(x$1: Any)Boolean` `method !=(x$1: AnyRef)Boolean` `method ##()Int` -`method +(other: String)java.lang.String` +`method +(other: String)String` `method ->[B](y: B)(akka.routing.Routing.type, B)` `method ==(x$1: Any)Boolean` `method ==(x$1: AnyRef)Boolean` `method asInstanceOf[T0]=> T0` -`method clone()java.lang.Object` +`method clone()Object` `method dispatcherActor(routing: akka.routing.Routing.PF[Any,akka.actor.ActorRef])akka.actor.ActorRef` `method dispatcherActor(routing: akka.routing.Routing.PF[Any,akka.actor.ActorRef], msgTransformer: Any => Any)akka.actor.ActorRef` `method ensuring(cond: Boolean)akka.routing.Routing.type` @@ -41,7 +41,7 @@ retrieved 43 members `method notify()Unit` `method notifyAll()Unit` `method synchronized[T0](x$1: T0)T0` -`method toString()java.lang.String` +`method toString()String` `method wait()Unit` `method wait(x$1: Long)Unit` `method wait(x$1: Long, x$2: Int)Unit` @@ -62,7 +62,7 @@ retrieved 129 members `method !=(x$1: Any)Boolean` `method !=(x$1: AnyRef)Boolean` `method ##()Int` -`method +(other: String)java.lang.String` +`method +(other: String)String` `method ->[B](y: B)(akka.actor.ActorRef, B)` `method ==(x$1: Any)Boolean` `method ==(x$1: AnyRef)Boolean` @@ -72,7 +72,7 @@ retrieved 129 members `method actorInstance=> java.util.concurrent.atomic.AtomicReference[akka.actor.Actor]` `method asInstanceOf[T0]=> T0` `method channel=> akka.actor.Channel[Any]` -`method clone()java.lang.Object` +`method clone()Object` `method compareTo(other: akka.actor.ActorRef)Int` `method dispatcher=> akka.dispatch.MessageDispatcher` `method dispatcher_=(md: akka.dispatch.MessageDispatcher)Unit` @@ -95,14 +95,14 @@ retrieved 129 members `method getHomeAddress()java.net.InetSocketAddress` `method getId()String` `method getLifeCycle()akka.config.Supervision.LifeCycle` -`method getLinkedActors()java.util.Map[akka.actor.package.Uuid,akka.actor.ActorRef]` +`method getLinkedActors()java.util.Map[akka.actor.Uuid,akka.actor.ActorRef]` `method getMailboxSize()Int` `method getReceiveTimeout()Option[Long]` `method getSender()Option[akka.actor.ActorRef]` `method getSenderFuture()Option[akka.dispatch.CompletableFuture[Any]]` `method getSupervisor()akka.actor.ActorRef` `method getTimeout()Long` -`method getUuid()akka.actor.package.Uuid` +`method getUuid()akka.actor.Uuid` `method handleTrapExit(dead: akka.actor.ActorRef, reason: Throwable)Unit` `method hashCode()Int` `method homeAddress=> Option[java.net.InetSocketAddress]` @@ -116,7 +116,7 @@ retrieved 129 members `method isShutdown=> Boolean` `method isUnstarted=> Boolean` `method link(actorRef: akka.actor.ActorRef)Unit` -`method linkedActors=> java.util.Map[akka.actor.package.Uuid,akka.actor.ActorRef]` +`method linkedActors=> java.util.Map[akka.actor.Uuid,akka.actor.ActorRef]` `method mailbox=> AnyRef` `method mailboxSize=> Int` `method mailbox_=(value: AnyRef)AnyRef` @@ -125,7 +125,7 @@ retrieved 129 members `method notifyAll()Unit` `method postMessageToMailbox(message: Any, senderOption: Option[akka.actor.ActorRef])Unit` `method postMessageToMailboxAndCreateFutureResultWithTimeout[T](message: Any, timeout: Long, senderOption: Option[akka.actor.ActorRef], senderFuture: Option[akka.dispatch.CompletableFuture[T]])akka.dispatch.CompletableFuture[T]` -`method registerSupervisorAsRemoteActor=> Option[akka.actor.package.Uuid]` +`method registerSupervisorAsRemoteActor=> Option[akka.actor.Uuid]` `method reply(message: Any)Unit` `method replySafe(message: AnyRef)Boolean` `method replyUnsafe(message: AnyRef)Unit` @@ -162,10 +162,10 @@ retrieved 129 members `method supervisor=> Option[akka.actor.ActorRef]` `method supervisor_=(sup: Option[akka.actor.ActorRef])Unit` `method synchronized[T0](x$1: T0)T0` -`method toString()java.lang.String` +`method toString()String` `method unlink(actorRef: akka.actor.ActorRef)Unit` -`method uuid=> akka.actor.package.Uuid` -`method uuid_=(uid: akka.actor.package.Uuid)Unit` +`method uuid=> akka.actor.Uuid` +`method uuid_=(uid: akka.actor.Uuid)Unit` `method wait()Unit` `method wait(x$1: Long)Unit` `method wait(x$1: Long, x$2: Int)Unit` @@ -173,7 +173,7 @@ retrieved 129 members `value selfAny` `value xakka.actor.ActorRef` `variable _statusakka.actor.ActorRefInternals.StatusType` -`variable _uuidakka.actor.package.Uuid` +`variable _uuidakka.actor.Uuid` `variable currentMessageakka.dispatch.MessageInvocation` `variable faultHandlerakka.config.Supervision.FaultHandlingStrategy` `variable hotswapscala.collection.immutable.Stack[PartialFunction[Any,Unit]]` @@ -193,7 +193,7 @@ retrieved 129 members `method !=(x$1: Any)Boolean` `method !=(x$1: AnyRef)Boolean` `method ##()Int` -`method +(other: String)java.lang.String` +`method +(other: String)String` `method ->[B](y: B)(akka.actor.ActorRef, B)` `method ==(x$1: Any)Boolean` `method ==(x$1: AnyRef)Boolean` @@ -203,7 +203,7 @@ retrieved 129 members `method actorInstance=> java.util.concurrent.atomic.AtomicReference[akka.actor.Actor]` `method asInstanceOf[T0]=> T0` `method channel=> akka.actor.Channel[Any]` -`method clone()java.lang.Object` +`method clone()Object` `method compareTo(other: akka.actor.ActorRef)Int` `method dispatcher=> akka.dispatch.MessageDispatcher` `method dispatcher_=(md: akka.dispatch.MessageDispatcher)Unit` @@ -226,14 +226,14 @@ retrieved 129 members `method getHomeAddress()java.net.InetSocketAddress` `method getId()String` `method getLifeCycle()akka.config.Supervision.LifeCycle` -`method getLinkedActors()java.util.Map[akka.actor.package.Uuid,akka.actor.ActorRef]` +`method getLinkedActors()java.util.Map[akka.actor.Uuid,akka.actor.ActorRef]` `method getMailboxSize()Int` `method getReceiveTimeout()Option[Long]` `method getSender()Option[akka.actor.ActorRef]` `method getSenderFuture()Option[akka.dispatch.CompletableFuture[Any]]` `method getSupervisor()akka.actor.ActorRef` `method getTimeout()Long` -`method getUuid()akka.actor.package.Uuid` +`method getUuid()akka.actor.Uuid` `method handleTrapExit(dead: akka.actor.ActorRef, reason: Throwable)Unit` `method hashCode()Int` `method homeAddress=> Option[java.net.InetSocketAddress]` @@ -247,7 +247,7 @@ retrieved 129 members `method isShutdown=> Boolean` `method isUnstarted=> Boolean` `method link(actorRef: akka.actor.ActorRef)Unit` -`method linkedActors=> java.util.Map[akka.actor.package.Uuid,akka.actor.ActorRef]` +`method linkedActors=> java.util.Map[akka.actor.Uuid,akka.actor.ActorRef]` `method mailbox=> AnyRef` `method mailboxSize=> Int` `method mailbox_=(value: AnyRef)AnyRef` @@ -256,7 +256,7 @@ retrieved 129 members `method notifyAll()Unit` `method postMessageToMailbox(message: Any, senderOption: Option[akka.actor.ActorRef])Unit` `method postMessageToMailboxAndCreateFutureResultWithTimeout[T](message: Any, timeout: Long, senderOption: Option[akka.actor.ActorRef], senderFuture: Option[akka.dispatch.CompletableFuture[T]])akka.dispatch.CompletableFuture[T]` -`method registerSupervisorAsRemoteActor=> Option[akka.actor.package.Uuid]` +`method registerSupervisorAsRemoteActor=> Option[akka.actor.Uuid]` `method reply(message: Any)Unit` `method replySafe(message: AnyRef)Boolean` `method replyUnsafe(message: AnyRef)Unit` @@ -293,10 +293,10 @@ retrieved 129 members `method supervisor=> Option[akka.actor.ActorRef]` `method supervisor_=(sup: Option[akka.actor.ActorRef])Unit` `method synchronized[T0](x$1: T0)T0` -`method toString()java.lang.String` +`method toString()String` `method unlink(actorRef: akka.actor.ActorRef)Unit` -`method uuid=> akka.actor.package.Uuid` -`method uuid_=(uid: akka.actor.package.Uuid)Unit` +`method uuid=> akka.actor.Uuid` +`method uuid_=(uid: akka.actor.Uuid)Unit` `method wait()Unit` `method wait(x$1: Long)Unit` `method wait(x$1: Long, x$2: Int)Unit` @@ -304,7 +304,7 @@ retrieved 129 members `value selfAny` `value xakka.actor.ActorRef` `variable _statusakka.actor.ActorRefInternals.StatusType` -`variable _uuidakka.actor.package.Uuid` +`variable _uuidakka.actor.Uuid` `variable currentMessageakka.dispatch.MessageInvocation` `variable faultHandlerakka.config.Supervision.FaultHandlingStrategy` `variable hotswapscala.collection.immutable.Stack[PartialFunction[Any,Unit]]` @@ -324,7 +324,7 @@ retrieved 129 members `method !=(x$1: Any)Boolean` `method !=(x$1: AnyRef)Boolean` `method ##()Int` -`method +(other: String)java.lang.String` +`method +(other: String)String` `method ->[B](y: B)(akka.actor.ScalaActorRef, B)` `method ==(x$1: Any)Boolean` `method ==(x$1: AnyRef)Boolean` @@ -334,7 +334,7 @@ retrieved 129 members `method actorInstance=> java.util.concurrent.atomic.AtomicReference[akka.actor.Actor]` `method asInstanceOf[T0]=> T0` `method channel=> akka.actor.Channel[Any]` -`method clone()java.lang.Object` +`method clone()Object` `method compareTo(other: akka.actor.ActorRef)Int` `method dispatcher=> akka.dispatch.MessageDispatcher` `method dispatcher_=(md: akka.dispatch.MessageDispatcher)Unit` @@ -357,14 +357,14 @@ retrieved 129 members `method getHomeAddress()java.net.InetSocketAddress` `method getId()String` `method getLifeCycle()akka.config.Supervision.LifeCycle` -`method getLinkedActors()java.util.Map[akka.actor.package.Uuid,akka.actor.ActorRef]` +`method getLinkedActors()java.util.Map[akka.actor.Uuid,akka.actor.ActorRef]` `method getMailboxSize()Int` `method getReceiveTimeout()Option[Long]` `method getSender()Option[akka.actor.ActorRef]` `method getSenderFuture()Option[akka.dispatch.CompletableFuture[Any]]` `method getSupervisor()akka.actor.ActorRef` `method getTimeout()Long` -`method getUuid()akka.actor.package.Uuid` +`method getUuid()akka.actor.Uuid` `method handleTrapExit(dead: akka.actor.ActorRef, reason: Throwable)Unit` `method hashCode()Int` `method homeAddress=> Option[java.net.InetSocketAddress]` @@ -378,7 +378,7 @@ retrieved 129 members `method isShutdown=> Boolean` `method isUnstarted=> Boolean` `method link(actorRef: akka.actor.ActorRef)Unit` -`method linkedActors=> java.util.Map[akka.actor.package.Uuid,akka.actor.ActorRef]` +`method linkedActors=> java.util.Map[akka.actor.Uuid,akka.actor.ActorRef]` `method mailbox=> AnyRef` `method mailboxSize=> Int` `method mailbox_=(value: AnyRef)AnyRef` @@ -387,7 +387,7 @@ retrieved 129 members `method notifyAll()Unit` `method postMessageToMailbox(message: Any, senderOption: Option[akka.actor.ActorRef])Unit` `method postMessageToMailboxAndCreateFutureResultWithTimeout[T](message: Any, timeout: Long, senderOption: Option[akka.actor.ActorRef], senderFuture: Option[akka.dispatch.CompletableFuture[T]])akka.dispatch.CompletableFuture[T]` -`method registerSupervisorAsRemoteActor=> Option[akka.actor.package.Uuid]` +`method registerSupervisorAsRemoteActor=> Option[akka.actor.Uuid]` `method reply(message: Any)Unit` `method replySafe(message: AnyRef)Boolean` `method replyUnsafe(message: AnyRef)Unit` @@ -424,10 +424,10 @@ retrieved 129 members `method supervisor=> Option[akka.actor.ActorRef]` `method supervisor_=(sup: Option[akka.actor.ActorRef])Unit` `method synchronized[T0](x$1: T0)T0` -`method toString()java.lang.String` +`method toString()String` `method unlink(actorRef: akka.actor.ActorRef)Unit` -`method uuid=> akka.actor.package.Uuid` -`method uuid_=(uid: akka.actor.package.Uuid)Unit` +`method uuid=> akka.actor.Uuid` +`method uuid_=(uid: akka.actor.Uuid)Unit` `method wait()Unit` `method wait(x$1: Long)Unit` `method wait(x$1: Long, x$2: Int)Unit` @@ -435,7 +435,7 @@ retrieved 129 members `value selfAny` `value xakka.actor.ScalaActorRef` `variable _statusakka.actor.ActorRefInternals.StatusType` -`variable _uuidakka.actor.package.Uuid` +`variable _uuidakka.actor.Uuid` `variable currentMessageakka.dispatch.MessageInvocation` `variable faultHandlerakka.config.Supervision.FaultHandlingStrategy` `variable hotswapscala.collection.immutable.Stack[PartialFunction[Any,Unit]]` |