8198933: Update JDI tests to pass valid URL[]

Reviewed-by: dholmes
This commit is contained in:
Martin Buchholz 2018-03-01 21:23:35 -08:00
parent fa4abe66dd
commit 5e529f5d62
4 changed files with 12 additions and 12 deletions

View File

@ -736,10 +736,6 @@ com/sun/jdi/sde/SourceDebugExtensionTest.java 8158066 windows-
com/sun/jdi/NashornPopFrameTest.java 8187143 generic-all 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 # jdk_time

View File

@ -77,8 +77,9 @@ class EarlyReturnNegativeTarg {
public static ClassLoader classLoaderValue; public static ClassLoader classLoaderValue;
{ {
try { try {
urls[0] = new URL("hi there"); urls[0] = new URL("file:/foo");
} catch (java.net.MalformedURLException ee) { } catch (java.net.MalformedURLException ex) {
throw new AssertionError(ex);
} }
classLoaderValue = new URLClassLoader(urls); classLoaderValue = new URLClassLoader(urls);
} }

View File

@ -82,8 +82,9 @@ class EarlyReturnTarg {
public static ClassLoader classLoaderValue; public static ClassLoader classLoaderValue;
{ {
try { try {
urls[0] = new URL("hi there"); urls[0] = new URL("file:/foo");
} catch (java.net.MalformedURLException ee) { } catch (java.net.MalformedURLException ex) {
throw new AssertionError(ex);
} }
classLoaderValue = new URLClassLoader(urls); classLoaderValue = new URLClassLoader(urls);
} }
@ -116,8 +117,9 @@ class EarlyReturnTarg {
public static ClassLoader eclassLoaderValue; public static ClassLoader eclassLoaderValue;
{ {
try { try {
urls[0] = new URL("been there, done that"); urls[0] = new URL("file:/bar");
} catch (java.net.MalformedURLException ee) { } catch (java.net.MalformedURLException ex) {
throw new AssertionError(ex);
} }
classLoaderValue = new URLClassLoader(urls); classLoaderValue = new URLClassLoader(urls);
} }

View File

@ -66,8 +66,9 @@ class MethodExitReturnValuesTarg {
public static ClassLoader classLoaderValue; public static ClassLoader classLoaderValue;
{ {
try { try {
urls[0] = new URL("hi there"); urls[0] = new URL("file:/foo");
} catch (java.net.MalformedURLException ee) { } catch (java.net.MalformedURLException ex) {
throw new AssertionError(ex);
} }
classLoaderValue = new URLClassLoader(urls); classLoaderValue = new URLClassLoader(urls);
} }