< prev index next >

src/java.base/share/classes/java/lang/System.java

Print this page

        

*** 2186,2195 **** --- 2186,2199 ---- return cl.createOrGetClassLoaderValueMap(); } public Class<?> defineClass(ClassLoader loader, String name, byte[] b, ProtectionDomain pd, String source) { return ClassLoader.defineClass1(loader, name, b, 0, b.length, pd, source); } + public Class<?> defineClass(ClassLoader loader, Class<?> lookup, String name, byte[] b, ProtectionDomain pd, + int flags, Object classData) { + return ClassLoader.defineClass0(loader, lookup, name, b, 0, b.length, pd, flags, classData); + } public Class<?> findBootstrapClassOrNull(ClassLoader cl, String name) { return cl.findBootstrapClassOrNull(name); } public Package definePackage(ClassLoader cl, String name, Module module) { return cl.definePackage(name, module);
*** 2268,2275 **** --- 2272,2283 ---- } public void setCause(Throwable t, Throwable cause) { t.setCause(cause); } + + public ProtectionDomain protectionDomain(Class<?> c) { + return c.protectionDomain(); + } }); } }
< prev index next >