summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/InterpreterLoop.scala7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/InterpreterLoop.scala b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
index f1a957f6a0..04be5e9e6a 100644
--- a/src/compiler/scala/tools/nsc/InterpreterLoop.scala
+++ b/src/compiler/scala/tools/nsc/InterpreterLoop.scala
@@ -185,6 +185,7 @@ class InterpreterLoop(in0: Option[BufferedReader], out: PrintWriter) {
createInterpreter()
for (cmd <- replayCommands) {
out.println("Replaying: " + cmd)
+ out.flush() // because maybe cmd will have its own output
command(cmd)
out.println
}
@@ -276,11 +277,7 @@ class InterpreterLoop(in0: Option[BufferedReader], out: PrintWriter) {
InteractiveReader.createDefault()
}
- uglinessxxx =
- new java.net.URLClassLoader(
- ClassPath.expandPath(settings.classpath.value).
- map(s => new File(s).toURL).toArray,
- classOf[InterpreterLoop].getClassLoader)
+ uglinessxxx = classOf[InterpreterLoop].getClassLoader
createInterpreter()