Github user rcsenkbeil commented on a diff in the pull request:
https://github.com/apache/spark/pull/1929#discussion_r16208310
--- 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) }
--- End diff --
I previously was using the following inline:
```
new URLClassLoader(...) {
def addNewUrl(url: URL) = this.addURL(url)
}
```
But I was unable to access the exposed method since it was creating an
anonymous subclass. In terms of providing a trait versus a class that extends
URLClassLoader, I figured a trait was a lighter way to mix in the needed
exposure.
---
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]