8198933: Update JDI tests to pass valid URL[]
authormartin
Thu, 01 Mar 2018 21:23:35 -0800
changeset 49118 dbbbf6d7cf6e
parent 49117 0a93645a57f1
child 49119 216c1a039335
8198933: Update JDI tests to pass valid URL[] Reviewed-by: dholmes
test/jdk/ProblemList.txt
test/jdk/com/sun/jdi/EarlyReturnNegativeTest.java
test/jdk/com/sun/jdi/EarlyReturnTest.java
test/jdk/com/sun/jdi/MethodExitReturnValuesTest.java
--- a/test/jdk/ProblemList.txt	Thu Mar 01 19:01:34 2018 -0800
+++ b/test/jdk/ProblemList.txt	Thu Mar 01 21:23:35 2018 -0800
@@ -736,10 +736,6 @@
 
 com/sun/jdi/NashornPopFrameTest.java                            8187143 generic-all
 
-com/sun/jdi/EarlyReturnTest.java                                8198803 generic-all
-com/sun/jdi/EarlyReturnNegativeTest.java                        8198803 generic-all
-com/sun/jdi/MethodExitReturnValuesTest.java                     8198803 generic-all
-
 ############################################################################
 
 # jdk_time
--- a/test/jdk/com/sun/jdi/EarlyReturnNegativeTest.java	Thu Mar 01 19:01:34 2018 -0800
+++ b/test/jdk/com/sun/jdi/EarlyReturnNegativeTest.java	Thu Mar 01 21:23:35 2018 -0800
@@ -77,8 +77,9 @@
     public static ClassLoader classLoaderValue;
     {
         try {
-            urls[0] = new URL("hi there");
-        } catch (java.net.MalformedURLException ee) {
+            urls[0] = new URL("file:/foo");
+        } catch (java.net.MalformedURLException ex) {
+            throw new AssertionError(ex);
         }
         classLoaderValue = new URLClassLoader(urls);
     }
--- a/test/jdk/com/sun/jdi/EarlyReturnTest.java	Thu Mar 01 19:01:34 2018 -0800
+++ b/test/jdk/com/sun/jdi/EarlyReturnTest.java	Thu Mar 01 21:23:35 2018 -0800
@@ -82,8 +82,9 @@
     public static ClassLoader classLoaderValue;
     {
         try {
-            urls[0] = new URL("hi there");
-        } catch (java.net.MalformedURLException ee) {
+            urls[0] = new URL("file:/foo");
+        } catch (java.net.MalformedURLException ex) {
+            throw new AssertionError(ex);
         }
         classLoaderValue = new URLClassLoader(urls);
     }
@@ -116,8 +117,9 @@
     public static ClassLoader eclassLoaderValue;
     {
         try {
-            urls[0] = new URL("been there, done that");
-        } catch (java.net.MalformedURLException ee) {
+            urls[0] = new URL("file:/bar");
+        } catch (java.net.MalformedURLException ex) {
+            throw new AssertionError(ex);
         }
         classLoaderValue = new URLClassLoader(urls);
     }
--- a/test/jdk/com/sun/jdi/MethodExitReturnValuesTest.java	Thu Mar 01 19:01:34 2018 -0800
+++ b/test/jdk/com/sun/jdi/MethodExitReturnValuesTest.java	Thu Mar 01 21:23:35 2018 -0800
@@ -66,8 +66,9 @@
     public static ClassLoader classLoaderValue;
     {
         try {
-            urls[0] = new URL("hi there");
-        } catch (java.net.MalformedURLException ee) {
+            urls[0] = new URL("file:/foo");
+        } catch (java.net.MalformedURLException ex) {
+            throw new AssertionError(ex);
         }
         classLoaderValue = new URLClassLoader(urls);
     }