From 88d37ce5fd799034a114358a5d687f8cca4c1aa6 Mon Sep 17 00:00:00 2001 From: Sergei Kovalev Date: Tue, 13 Dec 2016 17:02:00 +0300 Subject: [PATCH] 8170864: java/net/URLClassLoader/closetest/CloseTest.java has undeclared dependencies Reviewed-by: chegar, dfuchs --- .../URLClassLoader/closetest/CloseTest.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/jdk/test/java/net/URLClassLoader/closetest/CloseTest.java b/jdk/test/java/net/URLClassLoader/closetest/CloseTest.java index 7a4ce531b0b..47feb498c51 100644 --- a/jdk/test/java/net/URLClassLoader/closetest/CloseTest.java +++ b/jdk/test/java/net/URLClassLoader/closetest/CloseTest.java @@ -21,10 +21,11 @@ * questions. */ -/** +/* * @test * @bug 4167874 - * @modules jdk.httpserver + * @modules java.logging + * jdk.httpserver * @library ../../../../com/sun/net/httpserver * @library /lib/testlibrary * @build FileServerHandler jdk.testlibrary.FileUtils @@ -33,10 +34,13 @@ * @summary URL-downloaded jar files can consume all available file descriptors */ -import java.io.*; -import java.net.*; -import java.lang.reflect.*; -import com.sun.net.httpserver.*; +import java.io.File; +import java.lang.reflect.Method; +import java.net.URLClassLoader; +import java.net.InetSocketAddress; +import java.net.URL; +import com.sun.net.httpserver.HttpContext; +import com.sun.net.httpserver.HttpServer; public class CloseTest extends Common { @@ -130,7 +134,7 @@ public class CloseTest extends Common { // load tests loadClass ("com.foo.TestClass1", loader, false); loadClass ("com.foo.TestClass", loader, true); - loadClass ("java.sql.Array", loader, true); + loadClass ("java.util.ArrayList", loader, true); // now check we can delete the path rm_minus_rf (new File(name));