summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-24 09:44:54 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-05-24 09:44:54 +0000
commitc033e723857a2cefb1ccf20492b8146ddedb0447 (patch)
treec771d48640e81a54c6d6aa62ac7835d74dc2753e
parent4cba60178d2f49f14b23039e47ac90612deb9046 (diff)
downloadscala-c033e723857a2cefb1ccf20492b8146ddedb0447.tar.gz
scala-c033e723857a2cefb1ccf20492b8146ddedb0447.tar.bz2
scala-c033e723857a2cefb1ccf20492b8146ddedb0447.zip
By default, the interpreter now uses the classl...
By default, the interpreter now uses the classloader that loaded itself as its parent.
-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..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]()