Github user rcsenkbeil commented on a diff in the pull request:
https://github.com/apache/spark/pull/1929#discussion_r16206505
--- Diff: repl/src/main/scala/org/apache/spark/repl/SparkIMain.scala ---
@@ -130,6 +131,9 @@ import org.apache.spark.util.Utils
private var _classLoader: AbstractFileClassLoader = null
// active classloader
private val _compiler: Global =
newCompiler(settings, reporter) // our private compiler
+ private trait ExposeAddUrl extends URLClassLoader { def addNewUrl(url:
URL) = this.addURL(url) }
+ private var _runtimeClassLoader: URLClassLoader with ExposeAddUrl =
null // wrapper exposing addURL
--- End diff --
I needed to add a parent loader that explicitly exposed the addURL method
so I could add new jars to our runtime, otherwise just adding to the compile
time classpath would allow you to import the classes but not use them in the
interpreter.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]