< prev index next >

test/hotspot/jtreg/runtime/Dictionary/ProtectionDomainCacheTest.java

Print this page
rev 51731 : imported patch 8210732

*** 25,35 **** * @test * @bug 8151486 * @summary Call Class.forName() on the system classloader from a class loaded * from a custom classloader, using the current class's protection domain. * @library /test/jdk/lib/testlibrary ! * @build jdk.testlibrary.Utils JarUtils * @build ClassForName ProtectionDomainCacheTest * @run main/othervm/policy=test.policy -XX:+UnlockDiagnosticVMOptions -XX:VerifySubSet=dictionary -XX:+VerifyAfterGC -Xlog:gc+verify=debug,protectiondomain=trace,class+unload:gc.log -Djava.security.manager ProtectionDomainCacheTest */ import java.net.URL; --- 25,36 ---- * @test * @bug 8151486 * @summary Call Class.forName() on the system classloader from a class loaded * from a custom classloader, using the current class's protection domain. * @library /test/jdk/lib/testlibrary ! * @library /test/lib ! * @build jdk.test.lib.Utils JarUtils * @build ClassForName ProtectionDomainCacheTest * @run main/othervm/policy=test.policy -XX:+UnlockDiagnosticVMOptions -XX:VerifySubSet=dictionary -XX:+VerifyAfterGC -Xlog:gc+verify=debug,protectiondomain=trace,class+unload:gc.log -Djava.security.manager ProtectionDomainCacheTest */ import java.net.URL;
*** 37,47 **** import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; ! import jdk.testlibrary.Utils; /* * Create .jar, load ClassForName from .jar using a URLClassLoader */ public class ProtectionDomainCacheTest { --- 38,48 ---- import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; ! import jdk.test.lib.Utils; /* * Create .jar, load ClassForName from .jar using a URLClassLoader */ public class ProtectionDomainCacheTest {
< prev index next >