How to export a package from a module in a boot layer to module in a child layer.

Ron Pressler ron.pressler at oracle.com
Fri Jan 31 17:23:22 UTC 2025



> On 31 Jan 2025, at 16:49, Code Ranger <coderanger2025 at outlook.com> wrote:
> 
> 
> 1. we don't have access to the boot layer controller and we received a categorical refusal to grant access to it.

That is incorrect. The API for controlling modules in the boot layer has been available since JDK 9, using the very mechanism that has been used for precisely this kind of super-powered manipulation for 20 years:

https://docs.oracle.com/en/java/javase/23/docs/api/java.instrument/java/lang/instrument/Instrumentation.html#redefineModule(java.lang.Module,java.util.Set,java.util.Map,java.util.Map,java.util.Set,java.util.Map)

— Ron


More information about the jigsaw-dev mailing list