[ https://issues.apache.org/jira/browse/SPARK-21578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-21578: ---------------------------------- Description: Due to SI-8479, [SPARK-1093|https://issues.apache.org/jira/browse/SPARK-21578] introduced redundant [SparkContext constructors|https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/SparkContext.scala#L148-L181]. However, [SI-8479|https://issues.scala-lang.org/browse/SI-8479] is already fixed in Scala 2.10.5 and Scala 2.11.1. The real reason to provide this constructor is that Java code can access `SparkContext` directly. It's Scala behavior, SI-4278. So, this PR adds an explicit testsuite, `JavaSparkContextSuite` to prevent future regression, and fixes the outdate comment, too. was: Due to SI-8479, [SPARK-1093|https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/SparkContext.scala#L148-L181] introduced redundant constructors. Since [SI-8479|https://issues.scala-lang.org/browse/SI-8479] is fixed in Scala 2.10.5 and Scala 2.11.1. We can remove them safely. > Add JavaSparkContextSuite > ------------------------- > > Key: SPARK-21578 > URL: https://issues.apache.org/jira/browse/SPARK-21578 > Project: Spark > Issue Type: Improvement > Components: Spark Core > Affects Versions: 2.3.0 > Reporter: Dongjoon Hyun > Assignee: Dongjoon Hyun > Priority: Minor > > Due to SI-8479, > [SPARK-1093|https://issues.apache.org/jira/browse/SPARK-21578] introduced > redundant [SparkContext > constructors|https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/SparkContext.scala#L148-L181]. > However, [SI-8479|https://issues.scala-lang.org/browse/SI-8479] is already > fixed in Scala 2.10.5 and Scala 2.11.1. > The real reason to provide this constructor is that Java code can access > `SparkContext` directly. It's Scala behavior, SI-4278. So, this PR adds an > explicit testsuite, `JavaSparkContextSuite` to prevent future regression, > and fixes the outdate comment, too. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org