Currently a URLClassLoader instance will be successfully constructed if the URL array contains a null element but a NullPointerException will subsequently occur, e.g., in findClass() if the URLClassLoader is actually used.
JDK-8198484URLClassPath should use an ArrayDeque instead of a Stack
JDK-7179567JCK8 tests: api/java_net/URLClassLoader/index.html#Ctor3 failed with NPE
JDK-8198803URLClassLoader does not specify behavior when URL array contains null
JDK-6445180URLClassLoader does not describe the behavior of several methods with respect to null arguments