[jdk17] RFR: 8268080: java/util/concurrent/forkjoin/AsyncShutdownNow.java fails with java.util.concurrent.RejectedExecutionException

Daniel Fuchs dfuchs at openjdk.java.net
Wed Jun 16 10:36:35 UTC 2021


On Wed, 16 Jun 2021 09:57:29 GMT, Julia Boes <jboes at openjdk.org> wrote:

> In the methods in question, `RejectedExecutionException` is an expected exception that was previously unhandled (it is a `RuntimeException`, not a subclass of `ExecutionException`). This change adds `RejectedExecutionException` to the existing catch clause.

Marked as reviewed by dfuchs (Reviewer).

test/jdk/java/util/concurrent/forkjoin/AsyncShutdownNow.java line 2:

> 1: /*
> 2:  * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.

Same remark that Pavel made below. Otherwise look good. Please fix the copyright years to `2020, 2021,` before integrating.

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

PR: https://git.openjdk.java.net/jdk17/pull/74


More information about the core-libs-dev mailing list