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.102 by jsr166, Sat Jan 27 19:01:26 2018 UTC

# 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