RFR 8020921 <was> Re: CompletableFuture updates and CompletionStage

Chris Hegarty chris.hegarty at oracle.com
Wed Jul 24 15:43:24 UTC 2013


Thanks Doug, I see the updates in you CVS. Paul, or I, can sync these 
before pushing this.

On 24/07/2013 16:25, Doug Lea wrote:
> ....
> Thanks also to Chris for pointing out that CompletableFuture
> did not have arrangements in place for asyncs when users run with
> system property java.util.concurrent.ForkJoinPool.common.parallelism
> set to zero. Now it does.

You can trivially update the Basic test to catch this.

hg diff java/util/concurrent/CompletableFuture/Basic.java
diff -r a3a2889b1049 test/java/util/concurrent/CompletableFuture/Basic.java
--- a/test/java/util/concurrent/CompletableFuture/Basic.java    Mon Jul 
22 15:26:11 2013 +0100
+++ b/test/java/util/concurrent/CompletableFuture/Basic.java    Wed Jul 
24 16:38:18 2013 +0100
@@ -34,6 +34,8 @@
  /*
   * @test
   * @bug 8005696
+ * @run main Basic
+ * @run main/othervm 
-Djava.util.concurrent.ForkJoinPool.common.parallelism=0 Basic
   * @summary Basic tests for CompletableFuture
   * @author Chris Hegarty
   */

-Chris.



More information about the core-libs-dev mailing list