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

Method loadClass

classpath/avian/SystemClassLoader.java:41–63  ·  view source on GitHub ↗
(String name, boolean resolve)

Source from the content-addressed store, hash-verified

39 }
40
41 protected Class loadClass(String name, boolean resolve)
42 throws ClassNotFoundException
43 {
44 Class c = findLoadedClass(name);
45 if (c == null) {
46 ClassLoader parent = getParent();
47 if (parent != null) {
48 try {
49 c = parent.loadClass(name);
50 } catch (ClassNotFoundException ok) { }
51 }
52
53 if (c == null) {
54 c = findClass(name);
55 }
56 }
57
58 if (resolve) {
59 resolveClass(c);
60 }
61
62 return c;
63 }
64
65 private native String resourceURLPrefix(String name);
66

Callers 1

forNameMethod · 0.45

Calls 5

loadClassMethod · 0.95
findClassMethod · 0.95
findLoadedClassMethod · 0.80
resolveClassMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected