Print this page


Split Close
Expand all
Collapse all
          --- old/test/java/util/concurrent/ExecutorCompletionService/ExecutorCompletionServiceLoops.java
          +++ new/test/java/util/concurrent/ExecutorCompletionService/ExecutorCompletionServiceLoops.java
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27   * file:
  28   28   *
  29   29   * Written by Doug Lea with assistance from members of JCP JSR-166
  30   30   * Expert Group and released to the public domain, as explained at
  31   31   * http://creativecommons.org/licenses/publicdomain
  32   32   */
  33   33  
  34   34  /*
  35   35   * @test
  36   36   * @bug 4965960
  37      - * @compile ExecutorCompletionServiceLoops.java
       37 + * @compile -source 1.5 ExecutorCompletionServiceLoops.java
  38   38   * @run main/timeout=3600 ExecutorCompletionServiceLoops
  39   39   * @summary  Exercise ExecutorCompletionServiceLoops
  40   40   */
  41   41  
  42   42  import java.util.concurrent.*;
  43   43  
  44   44  public class ExecutorCompletionServiceLoops {
  45   45      static final int POOLSIZE =      100;
  46   46      static final ExecutorService pool =
  47   47          Executors.newFixedThreadPool(POOLSIZE);
↓ open down ↓ 72 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX