< prev index next >

test/jdk/java/lang/ClassLoader/forNameLeak/ClassForNameLeak.java

Print this page
rev 51881 : [mq]: 8211171
rev 51882 : [mq]: 8211171-1

*** 25,35 **** * @test * @bug 8151486 * @summary Call Class.forName() on the system classloader from a class loaded * from a custom classloader. * @library /test/lib ! * @build jdk.test.lib.Utils JarUtils * @build ClassForName ClassForNameLeak * @run main/othervm/policy=test.policy -Djava.security.manager ClassForNameLeak */ import java.io.IOException; --- 25,36 ---- * @test * @bug 8151486 * @summary Call Class.forName() on the system classloader from a class loaded * from a custom classloader. * @library /test/lib ! * @build jdk.test.lib.Utils ! * jdk.test.lib.util.JarUtils * @build ClassForName ClassForNameLeak * @run main/othervm/policy=test.policy -Djava.security.manager ClassForNameLeak */ import java.io.IOException;
*** 46,56 **** --- 47,59 ---- import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.stream.Collectors; import java.util.stream.Stream; + import jdk.test.lib.Utils; + import jdk.test.lib.util.JarUtils; /* * Create .jar, load ClassForName from .jar using a URLClassLoader */ public class ClassForNameLeak {
< prev index next >