Integrated: 8272964: java/nio/file/Files/InterruptCopy.java fails with java.lang.RuntimeException: Copy was not interrupted
Brian Burkhalter
bpb at openjdk.java.net
Fri Aug 27 16:11:35 UTC 2021
On Wed, 25 Aug 2021 23:37:50 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> In the interrupt case, if the copy does not throw an `IOException`, rather than using the copy duration versus a threshold as the criterion for failure, instead check whether the target file does **not** exist, and if it does not, then make the test fail as this would indicate that the copy was in fact interrupted but did not throw an exception in response.
This pull request has now been integrated.
Changeset: dfeb4132
Author: Brian Burkhalter <bpb at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/dfeb4132e402c0466740a029c3b1d2d213955822
Stats: 10 lines in 1 file changed: 7 ins; 1 del; 2 mod
8272964: java/nio/file/Files/InterruptCopy.java fails with java.lang.RuntimeException: Copy was not interrupted
Reviewed-by: dfuchs
-------------
PR: https://git.openjdk.java.net/jdk/pull/5260
More information about the nio-dev
mailing list