hg: jigsaw/jigsaw/hotspot: Summary: Allow passing in a non-null module loader to translate to boot loader.
Paul Sandoz
paul.sandoz at oracle.com
Thu May 24 01:03:57 PDT 2012
On May 23, 2012, at 6:30 PM, Karen Kinnear wrote:
> A couple more details on that.
>
> 1) As Alan pointed out, for existing applications, they should see no difference.
> 2) When running with modules, this change is to accept a non-null loader for the base module.
> There are classes which today load with the vm boot loader, i.e. a null class loader, which are not
> in the base module and so they would already return a non-null loader. e.g. xml, corba, ...
>
I find it useful to enumerate the modes with an example.
Classpath mode (existing apps, *nothing changes*):
java.lang.Object.class.getClassLoader() == null &&
com.sun.net.httpserver.HttpServer.class.getClassLoader() == null;
Current Jigsaw modular mode:
java.lang.Object.class.getClassLoader() == null &&
com.sun.net.httpserver.HttpServer.class.getClassLoader() != null;
"Karen and Mandy's" tweaked Jigsaw modular mode:
java.lang.Object.class.getClassLoader() != null &&
com.sun.net.httpserver.HttpServer.class.getClassLoader() != null &&
java.lang.Object.class.getClassLoader() != com.sun.net.httpserver.HttpServer.class.getClassLoader();
Paul.
More information about the jigsaw-dev
mailing list