Skip to content

Commit

Permalink
Updated AddUrlsToClasspath to use 'new Run' suggestion over hackish c…
Browse files Browse the repository at this point in the history
…ompiler error
  • Loading branch information
Chip Senkbeil committed Aug 27, 2014
1 parent 2ff1d86 commit a826795
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions repl/src/main/scala/org/apache/spark/repl/SparkIMain.scala
Expand Up @@ -319,11 +319,7 @@ import org.apache.spark.util.Utils
* @param urls The list of items to add to the compile and runtime classpaths
*/
def addUrlsToClassPath(urls: URL*): Unit = {
// TODO: Investigate how to get Scala classes to be loaded without relying on this error
intp.totalSilence = true
intp.interpret("$reservedFailureIdentifier")
intp.totalSilence = false

new Run // Needed to force initialization of "something" to correctly load Scala classes from jars
urls.foreach(_runtimeClassLoader.addNewUrl) // Add jars/classes to runtime for execution
updateCompilerClassPath(urls: _*) // Add jars/classes to compile time for compiling
}
Expand Down

0 comments on commit a826795

Please sign in to comment.