Review request: JDK-8172870 test/tools/jmod/JmodTest.java fails on windows with AccessDeniedException

Alan Bateman Alan.Bateman at oracle.com
Wed Jan 18 07:38:31 UTC 2017


On 17/01/2017 21:23, Mandy Chung wrote:

> This test case attempts to verify that the temp file created by jmod is cleaned up and removed if jmod create command fails.  It first cleans up any temp files matching the prefix and suffix created for this test case.  The test fails because the fix for JDK-8160286 that creates the jmod temp file in the tmp directory and it was updated to use Files.walk that may fail to read the file attributes if the user doesn’t have access.
>
> The patch fixes the test to call Files.list and find only the writeable files matching the prefix and suffix.
>
> http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8172870/webrev.00/
>
This looks okay (somewhat odd test but okay).

-Alan


More information about the jigsaw-dev mailing list