Clarification on AbstractInterruptibleChannel#end(), possible bug?
André Bargull
andrebargull at googlemail.com
Mon Jan 16 03:10:24 PST 2012
java.nio.channels.spi.AbstractInterruptibleChannel#end() contains the
following lines of code:
> Thread interrupted = this.interrupted;
> if (interrupted != null && interrupted == Thread.currentThread()) {
> interrupted = null;
> throw new ClosedByInterruptException();
> }
The assignment "interrupted = null" clearly doesn't make any sense here.
I guess it is supposed to be "this.interrupted = null"?
- André
More information about the nio-dev
mailing list