ServiceLoader.load(Class, ClassLoader) does not load services exposed in modules and loaded by parent CL

Jochen Theodorou blackdrag at gmx.org
Tue May 29 20:00:16 UTC 2018



Am 24.05.2018 um 19:33 schrieb Robert Scholte:
[...]
> I can quote Alan:
> Rhino used to be the JS engine in older releases and that may have been 
> in rt.jar and so loaded by the boot loader. When Nashorn replaced it (in 
> JDK 8) then it was configured to be defined to the extension class 
> loader so this is why the code snippet doesn't find it.

how is this handles in JDK 9 now?

bye Jochen


More information about the jigsaw-dev mailing list