RFR: 8365065: cancelled ForkJoinPool tasks no longer throw CancellationException

Alan Bateman alanb at openjdk.org
Mon Sep 22 16:59:30 UTC 2025


On Mon, 22 Sep 2025 15:32:30 GMT, Viktor Klang <vklang at openjdk.org> wrote:

> ForkJoinTask::get and ForkJoinTask::get(timeout, timeunit) now (again) throws CancellationException when cancelled.

test/jdk/java/util/concurrent/tck/ForkJoinPoolTest.java line 516:

> 514: 
> 515:     private void assertCancellationExceptionFrom(
> 516:             ExecutorService e,

I don't think "e" is needed.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27430#discussion_r2369428915


More information about the core-libs-dev mailing list