RFR: 8265261: java/nio/file/Files/InterruptCopy.java fails with java.lang.RuntimeException: Copy was not interrupted [v3]
Brian Burkhalter
bpb at openjdk.java.net
Mon Aug 23 18:06:35 UTC 2021
On Fri, 20 Aug 2021 15:41:33 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> I was not sure about the fixed rate firing here so you might be right. The wakeup is cancelled by `wakeup.get()` unless I misunderstand.
>
> Correction: I think an explicit `wakeup.cancel()` is needed.
Apparently setting the interrupted state prior to the copy does _not_ cause the copy to be interrupted.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5154
More information about the nio-dev
mailing list