summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/Interpreter.scala4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala
index c5fbd57354..de752737d8 100644
--- a/src/compiler/scala/tools/nsc/Interpreter.scala
+++ b/src/compiler/scala/tools/nsc/Interpreter.scala
@@ -172,9 +172,7 @@ class Interpreter(val settings: Settings, out: PrintWriter) {
Thread.currentThread.setContextClassLoader(classLoader)
}
- /** XXX Let's get rid of this. I believe the Eclipse plugin is
- * the only user of it, so this should be doable. */
- protected def parentClassLoader: ClassLoader = null
+ protected def parentClassLoader: ClassLoader = this.getClass.getClassLoader()
/** the previous requests this interpreter has processed */
private val prevRequests = new ArrayBuffer[Request]()