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

Method defineClass

classpath/java/lang/ClassLoader.java:83–94  ·  view source on GitHub ↗
(String name, byte[] b, int offset, int length)

Source from the content-addressed store, hash-verified

81 }
82
83 protected Class defineClass(String name, byte[] b, int offset, int length) {
84 if (b == null) {
85 throw new NullPointerException();
86 }
87
88 if (offset < 0 || offset > length || offset + length > b.length) {
89 throw new IndexOutOfBoundsException();
90 }
91
92 return avian.SystemClassLoader.getClass
93 (avian.Classes.defineVMClass(this, b, offset, length));
94 }
95
96 protected Class defineClass(String name, byte[] b, int offset, int length,
97 ProtectionDomain domain)

Callers 1

findClassMethod · 0.45

Calls 2

defineVMClassMethod · 0.80
getClassMethod · 0.45

Tested by

no test coverage detected