From 705e4f202f33fe88defc232119199378fda6aaf2 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 13 Nov 2016 08:35:52 +1100 Subject: [PATCH] Fix execution error with java 7 --- core/src/main/java/com/boydti/fawe/util/SetQueue.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/boydti/fawe/util/SetQueue.java b/core/src/main/java/com/boydti/fawe/util/SetQueue.java index 86984fb8..7e2ed593 100644 --- a/core/src/main/java/com/boydti/fawe/util/SetQueue.java +++ b/core/src/main/java/com/boydti/fawe/util/SetQueue.java @@ -118,6 +118,7 @@ public class SetQueue { pool.shutdown(); pool.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS); pool = new ForkJoinPool(); + completer = new ExecutorCompletionService(pool); } } secondLast = System.currentTimeMillis();