JDK-8234771 : Release Note: Thread Interrupt State Is Always Available
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 14
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2019-11-25
  • Updated: 2020-04-27
  • Resolved: 2020-04-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14Resolved
Description
The specification for `java.lang.Thread::interrupt` allows for an implementation to only track the interrupt state for live threads, and previously this is what occurred. As of this release, the interrupt state of a `Thread` is always available, and if you interrupt a thread `t` before it is started, or after it has terminated, the query `t.isInterrupted()` will return true.
Comments
On 26/11/2019 5:04 pm, Alan Bateman wrote:> > > On 25/11/2019 21:52, David Holmes wrote: >> https://bugs.openjdk.java.net/browse/JDK-8234771 >> >> Let me know what you think. > Looks good.
26-11-2019