changeset 16349:1eff11bbaa0b

8170864: java/net/URLClassLoader/closetest/CloseTest.java has undeclared dependencies Reviewed-by: chegar, dfuchs
author skovalev
date Tue, 13 Dec 2016 17:02:00 +0300
parents 3edecfdfe4de
children 9dde234ce1ef
files test/java/net/URLClassLoader/closetest/CloseTest.java
diffstat 1 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/net/URLClassLoader/closetest/CloseTest.java	Mon Dec 19 09:32:10 2016 +0100
+++ b/test/java/net/URLClassLoader/closetest/CloseTest.java	Tue Dec 13 17:02:00 2016 +0300
@@ -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 @@
         // 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));