6979009: (fc) FileChannel.read() fails to throw ClosedByInterruptException
Alan Bateman
Alan.Bateman at oracle.com
Tue Nov 9 01:28:05 PST 2010
Xueming Shen wrote:
>
> 138 } catch (ClosedByInterruptException e) {
> 139 if (interruptible) {
> 140 if (Thread.currentThread().isInterrupted()) {
> 141 expected(e + " thrown and interrupt
> status set");
> 142 } else {
> 143 unexpected(e + " thrown but interrupt
> status not set");
> 144 }
> 145 } else {
> 146 expected(e);
> 147 }
>
> Shouldn't #146 be unexpected(e)?
Well spotted! I've fixed the test now.
-Alan.
More information about the nio-dev
mailing list