RFR: 8335896: Source launcher should set TCCL
Alan Bateman
alanb at openjdk.org
Mon Jul 15 15:58:53 UTC 2024
On Thu, 11 Jul 2024 09:33:42 GMT, Christian Stein <cstein at openjdk.org> wrote:
> This change will set the TCCL to the in-memory classloader in source launcher mode - which differs from the initial application classloader that was created for the `java test/Prog.java` process.
Right, it need to the set to the in-memory class loader, otherwise service lookup and everything else that uses the TCCL will not locate classes or resources that are co-located in the child layer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20097#issuecomment-2228846367
More information about the compiler-dev
mailing list