-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 22
-
Component/s: core-libs
ForkJoinPool.invoke(ForkJoinTask) specifies that it rethrows errors and unchecked exceptions. It doesn't specify the behavior for tasks that throw a checked exception. The behavior in JDK 19-21 was to throw RuntimeException with the checked exception as the cause, this is probably the only sane behavior can that can be specified for this scenario.
- relates to
-
JDK-8288899 java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted"
-
- Closed
-