Fixed start.jar handling of expanded modules during --add-to-start

This commit is contained in:
Greg Wilkins 2014-04-07 13:11:41 +10:00
parent 6edb854c69
commit 2b2d3ac762

View File

@ -375,7 +375,7 @@ public class Modules implements Iterable<Module>
public void registerParentsIfMissing(BaseHome basehome, StartArgs args, Module module) throws IOException
{
for (String name : module.getParentNames())
for (String name : new ArrayList<>(module.getParentNames()))
{
if (!modules.containsKey(name))
{