Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/9812#discussion_r45281630
--- Diff:
repl/src/main/scala/org/apache/spark/repl/ExecutorClassLoader.scala ---
@@ -55,6 +57,14 @@ class ExecutorClassLoader(conf: SparkConf, classUri:
String, parent: ClassLoader
}
}
+ override def getResource(name: String): URL = {
+ parentLoader.getResource(name)
--- End diff --
I'd be surprised if the repl generated resources, but at the same time,
what if someone tries to load the generated class file as a resource? It's an
unusual but valid use case.
The code to support that is not complicated; it already exists in
`MutableURLClassLoader.scala` (class `ChildFirstURLClassLoader` for, example).
If you're up for it you could even create a helper trait or a utility method
somewhere for that.
---
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]