diff options
author | Ismael Juma <ismael@juma.me.uk> | 2011-12-27 14:16:53 +0000 |
---|---|---|
committer | Ismael Juma <ismael@juma.me.uk> | 2011-12-27 14:16:53 +0000 |
commit | 06d8e3a78d310704718d82fc83cdb0e9eb92e203 (patch) | |
tree | b7b05c7d42c8f0287e6f66e877dbcb58078bdff8 | |
parent | f737e35ddf43599043ab78404c4f9a13e6d02c9b (diff) | |
download | scala-06d8e3a78d310704718d82fc83cdb0e9eb92e203.tar.gz scala-06d8e3a78d310704718d82fc83cdb0e9eb92e203.tar.bz2 scala-06d8e3a78d310704718d82fc83cdb0e9eb92e203.zip |
Fix SI-5341: PhaseAssembly.removeDanglingNodes removes elements from mutable.Map
during iteration.
-rw-r--r-- | src/compiler/scala/tools/nsc/PhaseAssembly.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/PhaseAssembly.scala b/src/compiler/scala/tools/nsc/PhaseAssembly.scala index f25ea6fe5e..a627b982b6 100644 --- a/src/compiler/scala/tools/nsc/PhaseAssembly.scala +++ b/src/compiler/scala/tools/nsc/PhaseAssembly.scala @@ -185,7 +185,7 @@ trait PhaseAssembly { * dependency on something that is dropped. */ def removeDanglingNodes() { - for (node <- nodes.valuesIterator filter (_.phaseobj.isEmpty)) { + for (node <- nodes.values filter (_.phaseobj.isEmpty)) { val msg = "dropping dependency on node with no phase object: "+node.phasename informProgress(msg) nodes -= node.phasename |