You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/08/17 20:52:20 UTC
[jira] [Resolved] (SPARK-17103) Can not define class variable in
repl
[ https://issues.apache.org/jira/browse/SPARK-17103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-17103.
-------------------------------
Resolution: Duplicate
Sounds like a different manifestation of the same REPL import issue
> Can not define class variable in repl
> -------------------------------------
>
> Key: SPARK-17103
> URL: https://issues.apache.org/jira/browse/SPARK-17103
> Project: Spark
> Issue Type: Bug
> Components: Spark Shell
> Affects Versions: 2.0.0
> Reporter: Jeff Zhang
>
> I can not execute the following code in spark 2.0 repl, but it succeeds in scala 2.11 repl
> spark 2.0 repl
> {code}
> scala> import java.io.File
> import java.io.File
> scala> class Test {val f=new File(".")}
> <console>:11: error: not found: type File
> class Test {val f=new File(".")}
> {code}
> scala 2.11 repl
> {code}
> scala> import java.io.File
> import java.io.File
> scala> class Test { val f=new File(".")}
> defined class Test
> {code}
--
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