RFR: JDK-8243665 exploded-image-optimize touches module-info.class in all modules

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Wed Apr 29 09:27:08 UTC 2020


Due to the current design of the AddPackagesAttribute build tool, all 
module-info.class files will be written to, when the tool is run. This 
happens whenever at least one module-info.class file has been updated. 
The end result of this is that if you recompile a single module, *all* 
modules will be touch, forcing jmod to repackage all of them.

This fix did not initially work, since the jmod generation was 
non-deterministic, but that has gracefully been fixed by Alan in 
JDK-8243666.

Bug: https://bugs.openjdk.java.net/browse/JDK-8243665
WebRev: 
http://cr.openjdk.java.net/~ihse/JDK-8243665-fix-AddPackagesAttribute/webrev.01

/Magnus



More information about the build-dev mailing list