Merge branch '2.3.x'

Closes gh-23241
This commit is contained in:
Andy Wilkinson
2020-09-10 10:03:09 +01:00
3 changed files with 6 additions and 7 deletions

View File

@@ -80,9 +80,7 @@ public abstract class Launcher {
protected ClassLoader createClassLoader(Iterator<Archive> archives) throws Exception {
List<URL> urls = new ArrayList<>(50);
while (archives.hasNext()) {
Archive archive = archives.next();
urls.add(archive.getUrl());
archive.close();
urls.add(archives.next().getUrl());
}
return createClassLoader(urls.toArray(new URL[0]));
}