Review Request: JDK-8165563 ClassLoader::getSystemClassLoader will never be null

Alan Bateman Alan.Bateman at oracle.com
Thu Sep 8 06:52:12 UTC 2016


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).

>
> But the changes taking advantage of that look good! :)
I agree, the changes look good.

-Alan


More information about the core-libs-dev mailing list