You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Prashant Sharma (JIRA)" <ji...@apache.org> on 2014/11/03 07:10:34 UTC
[jira] [Commented] (SPARK-4165) Actor with Companion throws
ambiguous reference error in REPL
[ https://issues.apache.org/jira/browse/SPARK-4165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14194290#comment-14194290 ]
Prashant Sharma commented on SPARK-4165:
----------------------------------------
I think this should happen when we create any class with a companion. Can you confirm [~shiti] ?
> Actor with Companion throws ambiguous reference error in REPL
> -------------------------------------------------------------
>
> Key: SPARK-4165
> URL: https://issues.apache.org/jira/browse/SPARK-4165
> Project: Spark
> Issue Type: Bug
> Components: Spark Shell
> Affects Versions: 1.0.1, 1.1.0, 1.2.0
> Reporter: Shiti Saxena
> Assignee: Prashant Sharma
>
> Tried the following in the master branch REPL.
> {noformat}
> Spark context available as sc.
> scala> import akka.actor.{Actor,Props}
> import akka.actor.{Actor, Props}
> scala> :pas
> // Entering paste mode (ctrl-D to finish)
> class EchoActor extends Actor{
> override def receive = {
> case message => sender ! message
> }
> }
> object EchoActor {
> def props: Props = Props(new EchoActor())
> }
> // Exiting paste mode, now interpreting.
> defined class EchoActor
> defined module EchoActor
> scala> EchoActor.props
> <console>:15: error: reference to EchoActor is ambiguous;
> it is imported twice in the same scope by
> import $VAL1.EchoActor
> and import INSTANCE.EchoActor
> EchoActor.props
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org