8065720: (ch) AbstractInterruptibleChannel.end sets interrupted to null
authoralanb
Mon, 24 Nov 2014 18:11:25 +0000
changeset 27757 0317e4973b42
parent 27756 0a9a3b51bb92
child 27758 dfba484228ed
8065720: (ch) AbstractInterruptibleChannel.end sets interrupted to null Reviewed-by: psandoz, chegar
jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java
--- a/jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java	Mon Nov 24 07:19:36 2014 -0800
+++ b/jdk/src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java	Mon Nov 24 18:11:25 2014 +0000
@@ -198,7 +198,7 @@
         blockedOn(null);
         Thread interrupted = this.interrupted;
         if (interrupted != null && interrupted == Thread.currentThread()) {
-            interrupted = null;
+            this.interrupted = null;
             throw new ClosedByInterruptException();
         }
         if (!completed && !open)