On Mon, 22 Sep 2025 15:32:30 GMT, Viktor Klang <[email protected]> wrote:

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

src/java.base/share/classes/java/util/concurrent/ForkJoinTask.java line 1820:

> 1818:                 }
> 1819:                 return timed ? get(nanos, TimeUnit.NANOSECONDS) : get();
> 1820:             } catch(CancellationException ce) {

Suggestion:

            } catch (CancellationException ce) {

Code style bikeshedding

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

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

Reply via email to