Review Request: JDK-8165563 ClassLoader::getSystemClassLoader will never be null
Mandy Chung
mandy.chung at oracle.com
Thu Sep 8 14:57:38 UTC 2016
> On Sep 7, 2016, at 11:52 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
> On 08/09/2016 03:53, David Holmes wrote:
>
>> Despite code to contrary, I don't think the system classloader has "ever" been allowed to be null. If it can't be constructed then the whole initialization process will fail with an exception.
> In the JDK then that's true, I think allowing it be null was for another scenario. It's also possible it may have returned null during startup in previous releases but that is hard to test (and completely changed in JDK 9 so a non-issue).
Yes exactly. That’s one possible case before the system initialization was reworked in JDK 9.
Mandy
More information about the core-libs-dev
mailing list