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

Mandy Chung mandy.chung at
Fri Jan 20 21:32:09 UTC 2017

> On Jan 20, 2017, at 1:22 PM, Alan Bateman <Alan.Bateman at> wrote:
> Mandy - a while back then Erik changed the build so that JMOD files are created in JMODS_TEMPDIR rather than JMODS_DIR. I think this was to reduce interference with concurrent execution of the `jmod` tool. This might mean you can avoid using /tmp.

The issue is jmod —-hash-modules resolves a module graph from a given module path which is the containing directory of the JMOD file being created:

$ jmod create -—module-path dir —-hash-modules “.*” dir/m.jmod

It seems one solution is to have the temporary file name be a hidden file.

More information about the jigsaw-dev mailing list