8211825: ModuleLayer.defineModulesWithXXX does not setup delegation when module reads automatic module

Alan Bateman Alan.Bateman at oracle.com
Mon Oct 8 14:46:35 UTC 2018

This is the issue that Thomas Watson brought up here on Friday. If 
defineModulesWithXXX is used to create a module layer and it contains a 
module that reads an automatic module mapped to a different class loader 
(same layer or parent layer) then the class loader delegation isn't 
setup.  This scenario requires special handling the module descriptor 
for automatic modules don't declare any exports.

The changes to fix the issue are here:

Note that


More information about the jigsaw-dev mailing list