--- a/test/jdk/java/net/httpclient/SplitResponseSSL.java Fri Apr 06 13:21:08 2018 +0100
+++ b/test/jdk/java/net/httpclient/SplitResponseSSL.java Fri Apr 06 13:41:14 2018 +0100
@@ -27,7 +27,10 @@
* @library /lib/testlibrary
* @build jdk.testlibrary.SimpleSSLContext
* @build MockServer SplitResponse
- * @run main/othervm -Djdk.internal.httpclient.debug=true -Djdk.httpclient.HttpClient.log=all SplitResponseSSL SSL
+ * @run main/othervm
+ * -Djdk.internal.httpclient.debug=true
+ * -Djdk.httpclient.HttpClient.log=all
+ * SplitResponseSSL SSL
*/
public class SplitResponseSSL {
public static void main(String[] args) throws Exception {
--- a/test/jdk/java/net/httpclient/security/Security.java Fri Apr 06 13:21:08 2018 +0100
+++ b/test/jdk/java/net/httpclient/security/Security.java Fri Apr 06 13:41:14 2018 +0100
@@ -144,7 +144,7 @@
movefile("ProxyServer$Connection.class");
movefile("ProxyServer$1.class");
- URL url = subdir.toURL();
+ URL url = subdir.toURI().toURL();
System.out.println("URL for class loader = " + url);
URLClassLoader urlc = new URLClassLoader(new URL[] {url});
proxyClass = Class.forName("ProxyServer", true, urlc);
@@ -256,7 +256,7 @@
directProxyTest(proxyPort, true);
}),
// (12) policy has permission for both destination URL and proxy
- test(false, () -> { //Policy 11
+ test(false, () -> { //Policy 12 ( 11 & 12 are the same )
directProxyTest(proxyPort, false);
}),
// (13) async version of test 0