groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remi Forax <fo...@univ-mlv.fr>
Subject Re: [PROPOSAL]Provide an option to generate stubs in in-momery file system for better compiling performance
Date Sat, 19 Jan 2019 16:45:40 GMT
----- Mail original -----
> De: "Daniel.Sun" <sunlan@apache.org>
> À: "dev" <dev@groovy.incubator.apache.org>
> Envoyé: Samedi 19 Janvier 2019 16:44:43
> Objet: Re: [PROPOSAL]Provide an option to generate stubs in in-momery file system for
better compiling performance

> Use `ClassLoader.getPlatformClassLoader()` instead to solve the issue.
> 
> GroovyClassLoader dependencyLoader = new GroovyClassLoader(new
> URLClassLoader(urls, (ClassLoader)ClassLoader.getPlatformClassLoader()))
> 
> class loading changed in Java 9+. WTF!

ClassLoading have not changed but classes that were previously loaded by the boot loader (the
one written in C so reported as null from the Java side) have been moved to the platform loader
for security reason.
Being loaded by the boot loader make you a privileged class.

https://bugs.openjdk.java.net/browse/JDK-8189116?jql=labels%20%3D%20deprivilege

> 
> 
> Cheers,
> Daniel.Sun

cheers,
Rémi

> 
> 
> 
> 
> -----
> Apache Groovy committer
> Blog: http://blog.sunlan.me
> Twitter: @daniel_sun
> 
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message