How to export a package from a module in a boot layer to module in a child layer.
Code Ranger
coderanger2025 at outlook.com
Fri Jan 31 17:33:44 UTC 2025
On 1/31/25 19:23, Ron Pressler wrote:
>> 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)
Unfortunately, this is correct.
I am sure, that if it is necessary to use agent and java instrumentation to make this the simplest configuration work, then it simply means, that something is wrong here. Maybe two many constrains?
Best regards, CR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jigsaw-dev/attachments/20250131/933096c9/attachment.htm>
More information about the jigsaw-dev
mailing list