6993267: TEST_BUG: java/nio/file/Path/InterruptCopy.java fails intermittently (win)

Alan Bateman Alan.Bateman at oracle.com
Thu Oct 21 05:46:56 PDT 2010


Rémi Forax wrote:
> :
> Hi Alan,
> if wakeup task is interrupted, you should throw an assertion error,
> it should never happen.
>
> so line 102 should be
>
> } catch (InterruptedException e) {
>   throw (AssertionError)new Assertionerror().initCause(e);
> }
>
>
> Otherwise, it's Ok.
>
> Rémi
>
The wakeup task interrupts the main thread, so if the copy (on the main 
thread) is really fast then the main thread may be blocked in wakeup.get 
when it is interrupted. So I think I have it right, and it's easy to 
demonstrate by copying a very small file.

-Alan.


More information about the nio-dev mailing list