-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 26
-
Component/s: core-libs
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8375152 | 26.0.1 | Alan Bateman | P3 | Resolved | Fixed | b03 |
| JDK-8374762 | 26 | Alan Bateman | P3 | Resolved | Fixed | b30 |
The specification for StructuredTaskScope::join states that an InterruptedException is thrown if the thread is interrupted while waiting. However, it seems that this is not the only case, because the thread could also be interrupted before calling join, and the method would still throw InterruptedException.
Shouldn't the documentation say something like "Throws InterruptedException if the calling thread is interrupted before or while waiting"?
also many APIs that throw InterruptedException don't explicit state what happens if they are called with the interrupted status set.
Shouldn't the documentation say something like "Throws InterruptedException if the calling thread is interrupted before or while waiting"?
also many APIs that throw InterruptedException don't explicit state what happens if they are called with the interrupted status set.
- backported by
-
JDK-8374762 StructuredTaskScope::join not clear if called with interrupted status set
-
- Resolved
-
-
JDK-8375152 StructuredTaskScope::join not clear if called with interrupted status set
-
- Resolved
-
- csr for
-
JDK-8374578 StructuredTaskScope::join not clear if called with interrupted status set
-
- Closed
-
- links to
-
Commit(jdk26)
openjdk/jdk/09f0076e
-
Commit(master)
openjdk/jdk/6af27420
-
Review(jdk26)
openjdk/jdk/29085
-
Review(master)
openjdk/jdk/29059
(2 links to)