From c033e723857a2cefb1ccf20492b8146ddedb0447 Mon Sep 17 00:00:00 2001 From: Geoffrey Washburn Date: Sat, 24 May 2008 09:44:54 +0000 Subject: By default, the interpreter now uses the classl... By default, the interpreter now uses the classloader that loaded itself as its parent. --- src/compiler/scala/tools/nsc/Interpreter.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala index c5fbd57354..0ccc4169f4 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 + var parentClassLoader: ClassLoader = this.getClass.getClassLoader() /** the previous requests this interpreter has processed */ private val prevRequests = new ArrayBuffer[Request]() -- cgit v1.2.3