diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-05-24 09:44:54 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-05-24 09:44:54 +0000 |
commit | c033e723857a2cefb1ccf20492b8146ddedb0447 (patch) | |
tree | c771d48640e81a54c6d6aa62ac7835d74dc2753e /src | |
parent | 4cba60178d2f49f14b23039e47ac90612deb9046 (diff) | |
download | scala-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/Interpreter.scala | 4 |
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]() |