summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-08-31 10:29:24 (EDT)
committer pelder2006-08-31 10:29:24 (EDT)
commit5117af89710cb9e94dc18d14b7db1f6effa83cea (patch)
treebbac4763100a5b2a9aa0bede6504bca2c1233454
parent146cf4bba7dd9afba6a6a360f604950d90167fa4 (diff)
downloadorg.eclipse.jet-5117af89710cb9e94dc18d14b7db1f6effa83cea.zip
org.eclipse.jet-5117af89710cb9e94dc18d14b7db1f6effa83cea.tar.gz
org.eclipse.jet-5117af89710cb9e94dc18d14b7db1f6effa83cea.tar.bz2
[155808] Make defensive copy of map keyset prior to deleting from it.
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java
index 8e93749..875ad3c 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/compiler/JET2Compiler.java
@@ -637,7 +637,8 @@ public class JET2Compiler
public void clean()
{
- final Set templatePathSet = compilerState.getTemplateMap().keySet();
+ // make a safe copy of the keyset, as we will be modifying the template map by cleaning...
+ final Set templatePathSet = new HashSet(compilerState.getTemplateMap().keySet());
monitor.beginTask("", templatePathSet.size() + 2); //$NON-NLS-1$
for (Iterator i = templatePathSet.iterator(); i.hasNext();)
{