Review Request: JDK-8173096 jmod files are not world-readable

Mandy Chung mandy.chung at
Tue Jan 24 16:28:55 UTC 2017

> On Jan 22, 2017, at 3:17 AM, Peter Levart <peter.levart at> wrote:
> Hi Mandy,
> On 01/21/2017 03:32 AM, Mandy Chung wrote:
>> Updated webrev to put the temporary file in the same containing directory of the target file:
>> <>
> That's ok. Maybe also specify ATOMIC_MOVE to CopyOption ... options in Files.move() ? Currently the move will be atomic (rename in UNIX terminology) because the source and target are in the same directory, but if renaming fails for some reason, it will try the fallback to copy(src, dst) + remove(src). If you add ATOMIC_MOVE to options, failure to rename will result in exception. I don't know which one do you prefer?

I file <>

I prefer to see how jmod is used and any one runs into this issue that the atomic move and fallback to copy/remove may be needed.  The build could avoid the interference by creating a JMOD of the same name in a different directory.


More information about the jigsaw-dev mailing list