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.100 by jsr166, Mon Jul 17 22:27:31 2017 UTC vs.
Revision 1.102 by jsr166, Sat Jan 27 19:01:26 2018 UTC

# Line 1292 | Line 1292 | public class ThreadPoolExecutorSubclassT
1292      public void testMaximumPoolSizeIllegalArgumentException2() {
1293          final ThreadPoolExecutor p =
1294              new CustomTPE(2, 3,
1295 <                          LONG_DELAY_MS,
1296 <                          MILLISECONDS,new ArrayBlockingQueue<Runnable>(10));
1295 >                          LONG_DELAY_MS, MILLISECONDS,
1296 >                          new ArrayBlockingQueue<Runnable>(10));
1297          try (PoolCleaner cleaner = cleaner(p)) {
1298              try {
1299                  p.setMaximumPoolSize(-1);
# 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