jdk/test/java/util/concurrent/BlockingQueue/DrainToFails.java
changeset 34347 4a17f9e90a0f
parent 32991 b27c76b82713
child 43522 f9c6f543c4db
equal deleted inserted replaced
34346:09f5f3df8fa8 34347:4a17f9e90a0f
    35 /*
    35 /*
    36  * @test
    36  * @test
    37  * @summary Test drainTo failing due to c.add throwing
    37  * @summary Test drainTo failing due to c.add throwing
    38  */
    38  */
    39 
    39 
    40 import java.util.*;
    40 import java.util.ArrayList;
    41 import java.util.concurrent.*;
    41 import java.util.List;
       
    42 import java.util.concurrent.DelayQueue;
       
    43 import java.util.concurrent.Delayed;
       
    44 import java.util.concurrent.ArrayBlockingQueue;
       
    45 import java.util.concurrent.BlockingQueue;
       
    46 import java.util.concurrent.LinkedBlockingDeque;
       
    47 import java.util.concurrent.LinkedBlockingQueue;
       
    48 import java.util.concurrent.FutureTask;
       
    49 import java.util.concurrent.PriorityBlockingQueue;
       
    50 import java.util.concurrent.RunnableScheduledFuture;
       
    51 import java.util.concurrent.ScheduledThreadPoolExecutor;
       
    52 import java.util.concurrent.TimeUnit;
    42 
    53 
    43 @SuppressWarnings({"unchecked", "rawtypes"})
    54 @SuppressWarnings({"unchecked", "rawtypes"})
    44 public class DrainToFails {
    55 public class DrainToFails {
    45     final int CAPACITY = 10;
    56     final int CAPACITY = 10;
    46     final int SMALL = 2;
    57     final int SMALL = 2;