JDK 9 build with application class loader changes available?

Mandy Chung mandy.chung at oracle.com
Mon Apr 27 18:42:09 UTC 2015


On 04/26/2015 11:47 PM, Alan Bateman wrote:
> On 27/04/2015 01:52, Luke Daley wrote:
>> This is a follow on from: 
>> http://mail.openjdk.java.net/pipermail/jigsaw-dev/2015-April/004291.html
>>
>> @Mandy: is there a build of 9 available that has the application 
>> class loader changes that we can use to test with? If not, any ETA on 
>> one?
>>
> The JDK 9 builds don't have the module system yet and that is point 
> where we expect that the application class loader will no longer be a 
> URLClassLoader. No ETA on this yet.
>
> That said, it is easy to experiment with this now by running with the 
> system property java.system.classloader set to a class loader that is 
> not a URLClassLoader. Is this something you could try?

That is a good way to experiment with it.  You can set 
-Djava.system.class.loader=<AppClassLoaderClassName> that can simply be 
a SecureClassLoader that will delegate to the builtin system class loader.

Mandy


More information about the jigsaw-dev mailing list