changeset 11009:0f4b70c13556

8065720: (ch) AbstractInterruptibleChannel.end sets interrupted to null Reviewed-by: psandoz, chegar
author alanb
date Mon, 24 Nov 2014 18:11:25 +0000
parents 01c8bf6084fb
children 1d480d8fcf8c
files src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/nio/channels/spi/AbstractInterruptibleChannel.java	Mon Nov 24 07:19:36 2014 -0800
+++ b/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)