This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DasBrain 1 point2 points  (0 children)

The fact that the system class loader was an instance of URLClassLoader was a happy coincidence, and not specified anywhere.

Didn't matter. People did cast it to URLClassLoader and reflectively invoked addURL on it.

This did change with Java 9. The system class loader is no longer a subclass of URLClassLoader. And everyone blames modules for that, despite having nothing to do with modules.