--- jsr166/src/test/tck/ThreadPoolExecutorSubclassTest.java 2017/07/23 15:59:49 1.101 +++ jsr166/src/test/tck/ThreadPoolExecutorSubclassTest.java 2018/01/27 19:01:26 1.102 @@ -1967,4 +1967,19 @@ public class ThreadPoolExecutorSubclassT } } + public void testFinalizeMethodCallsSuperFinalize() { + new CustomTPE(1, 1, + LONG_DELAY_MS, MILLISECONDS, + new LinkedBlockingQueue()) { + + /** + * A finalize method without "throws Throwable", that + * calls super.finalize(). + */ + protected void finalize() { + super.finalize(); + } + }.shutdown(); + } + }