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

Chris Hegarty chris.hegarty at
Wed Jan 18 09:25:19 UTC 2017

> On 18 Jan 2017, at 07:38, Alan Bateman <Alan.Bateman at> wrote:
> 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.

When this test was added originally jmod was creating the tmp file in 
the current working directory. 

To avoid interference you could run with test with set
to the current working directory, “testng/othervm ..."


More information about the jigsaw-dev mailing list