[jdk17] RFR: 8268080: java/util/concurrent/forkjoin/AsyncShutdownNow.java fails with java.util.concurrent.RejectedExecutionException
Pavel Rappo
prappo at openjdk.java.net
Wed Jun 16 10:31:34 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.
test/jdk/java/util/concurrent/forkjoin/AsyncShutdownNowInvokeAny.java line 2:
> 1: /*
> 2: * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
Why did you replace the year rather than append it?
-------------
PR: https://git.openjdk.java.net/jdk17/pull/74
More information about the core-libs-dev
mailing list