8065720: (ch) AbstractInterruptibleChannel.end sets interrupted to null

Reviewed-by: psandoz, chegar
This commit is contained in:
Alan Bateman 2014-11-24 18:11:25 +00:00
parent 95ef6e0cb2
commit 3469175a63

View File

@ -198,7 +198,7 @@ public abstract class AbstractInterruptibleChannel
blockedOn(null);
Thread interrupted = this.interrupted;
if (interrupted != null && interrupted == Thread.currentThread()) {
interrupted = null;
this.interrupted = null;
throw new ClosedByInterruptException();
}
if (!completed && !open)