Repl deadlock fix.

Found the cure for the hanging repl introduced three comits ago.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25936 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
extempore 2011-11-04 04:17:02 +00:00
parent c6f1c3b355
commit f5913f5d4e
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: JPrintWriter)
def prompt = ILoop.this.prompt
}
override protected def createLineManager(): Line.Manager =
if (ReplPropsKludge.noThreadCreation(settings)) null else new Line.Manager(outer.classLoader) {
if (ReplPropsKludge.noThreadCreation(settings)) null else new Line.Manager(parentClassLoader) {
override def onRunaway(line: Line[_]): Unit = {
val template = """
|// She's gone rogue, captain! Have to take her out!