Review Request: JDK-8165563 ClassLoader::getSystemClassLoader will never be null
Paul Sandoz
paul.sandoz at oracle.com
Wed Sep 7 21:02:00 UTC 2016
> On 7 Sep 2016, at 12:42, Mandy Chung <mandy.chung at oracle.com> wrote:
>
> Webrev:
> http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8165563/webrev.00/
>
+1
Do we have any tests that can be cleaned up? If so log a separate issue for that?
Paul.
> ClassLoader::getPlatformClassLoader [1] is added in JDK 9 that is parent or ancestor of the system class loader [1]. The system class loader will never be null. Another relevant change in JDK 9 was that the system initialization was reworked that the built-in system class loader is initialized very early during startup.
>
> This patch updates ClassLoader::getSystemClassLoader to return a non-null system class loader and the implementation of a few methods to handle the null system class loader case.
>
> Mandy
>
> [1] http://download.java.net/java/jdk9/docs/api/java/lang/ClassLoader.html#builtinLoaders
More information about the core-libs-dev
mailing list