MCPcopy Create free account
hub / github.com/ReadyTalk/avian / URLClassLoader

Method URLClassLoader

classpath/java/net/URLClassLoader.java:23–32  ·  view source on GitHub ↗
(URL[] urls, ClassLoader parent)

Source from the content-addressed store, hash-verified

21 private final File jarFile;
22
23 public URLClassLoader(URL[] urls, ClassLoader parent) {
24 super(parent);
25 if(urls.length != 1) {
26 throw new UnsupportedOperationException();
27 }
28 if(!urls[0].getProtocol().equals("file")) {
29 throw new UnsupportedOperationException(urls[0].getProtocol());
30 }
31 this.jarFile = new File(urls[0].getFile());
32 }
33
34
35 protected Class findClass(String name) throws ClassNotFoundException {

Callers

nothing calls this directly

Calls 3

getProtocolMethod · 0.80
getFileMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected