Skip to main content

"Thread.currentThread().isInterrupted()" Always False?

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2013-11-20

The docs suggest that "isInterrupted" returns the interrupt result regardless of whether it is the interrupted reference or the current thread:

Yet in practice it seems Java only returns true from that method when it's the interrupted reference. Perhaps it only fails to work with "Thread.currentThread()". Regardless, the current behavior is confusing.