ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ThreadPoolExecutorSubclassTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ThreadPoolExecutorSubclassTest.java (file contents):
Revision 1.101 by jsr166, Sun Jul 23 15:59:49 2017 UTC vs.
Revision 1.104 by jsr166, Fri Sep 6 18:43:35 2019 UTC

# Line 769 | Line 769 | public class ThreadPoolExecutorSubclassT
769          Runnable waiter = new CheckedRunnable() { public void realRun() {
770              threadsStarted.countDown();
771              try {
772 <                MILLISECONDS.sleep(2 * LONG_DELAY_MS);
772 >                MILLISECONDS.sleep(LONGER_DELAY_MS);
773              } catch (InterruptedException success) {}
774              ran.getAndIncrement();
775          }};
# Line 1642 | Line 1642 | public class ThreadPoolExecutorSubclassT
1642              l.add(latchAwaitingStringTask(latch));
1643              l.add(null);
1644              try {
1645 <                e.invokeAny(l, randomTimeout(), MILLISECONDS);
1645 >                e.invokeAny(l, randomTimeout(), randomTimeUnit());
1646                  shouldThrow();
1647              } catch (NullPointerException success) {}
1648              latch.countDown();
# Line 1967 | Line 1967 | public class ThreadPoolExecutorSubclassT
1967          }
1968      }
1969  
1970 +    public void testFinalizeMethodCallsSuperFinalize() {
1971 +        new CustomTPE(1, 1,
1972 +                      LONG_DELAY_MS, MILLISECONDS,
1973 +                      new LinkedBlockingQueue<Runnable>()) {
1974 +
1975 +            /**
1976 +             * A finalize method without "throws Throwable", that
1977 +             * calls super.finalize().
1978 +             */
1979 +            protected void finalize() {
1980 +                super.finalize();
1981 +            }
1982 +        }.shutdown();
1983 +    }
1984 +
1985   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines