Upgrading an existing ClassLoader to support modules
Alan Bateman
Alan.Bateman at oracle.com
Wed Oct 26 20:59:59 UTC 2016
On 26/10/2016 20:39, Thomas Watson wrote:
> :
>
> Thanks. I'm curious when this method gets used. I suspected it was
> by the built-in jdk.internal.loader.Loaderloaders, but when I override
> this method I don't see it ever getting called. It seems to be used
> by the package private method ClassLoader.loadClass(Module module,
> String name)but it is unclear when this is used. In my experiment I
> have a Layer with mapped custom class loaders and then I have a child
> layer using the default jdk.internal.loader.Loaderloaders. I observe
> the jdk.internal.loader.Loaderis successfully delegating to to my
> custom loaders in the parent layer.
Look at Class.forName(Module, String), also the Class getResourceXXX
methods.
-Alan
More information about the jigsaw-dev
mailing list