summaryrefslogtreecommitdiff
path: root/sources/scalac/Global.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/Global.java')
-rw-r--r--sources/scalac/Global.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java
index 5d21cedff6..1807f45b2c 100644
--- a/sources/scalac/Global.java
+++ b/sources/scalac/Global.java
@@ -375,9 +375,11 @@ public abstract class Global {
}
if (reporter.errors() != 0) {
imports.clear();
- for (Iterator it = compiledNow.keySet().iterator(); it.hasNext();) {
- Symbol sym = (Symbol) it.next();
- sym.reset(new SourceCompleter(this));
+ for (Iterator i = compiledNow.entrySet().iterator(); i.hasNext();) {
+ Map.Entry entry = (Map.Entry)i.next();
+ Symbol clasz = (Symbol)entry.getKey();
+ AbstractFile file = ((SourceFile)entry.getValue()).getFile();
+ clasz.reset(new SourceCompleter(this, file));
}
}
symdata.clear();