# HG changeset patch # User chegar # Date 1527171808 -3600 # Node ID c3c6cae9d480e52a93d17b21729fa0ce1e481ec6 # Parent dc01f2104e46cd6ed94a536eb36733cec66e0b5a 8203297: java/net/URL/OpenStream.java fails intermittently Reviewed-by: alanb, dfuchs diff -r dc01f2104e46 -r c3c6cae9d480 test/jdk/java/net/URL/OpenStream.java --- a/test/jdk/java/net/URL/OpenStream.java Thu May 24 15:46:04 2018 +0200 +++ b/test/jdk/java/net/URL/OpenStream.java Thu May 24 15:23:28 2018 +0100 @@ -55,7 +55,7 @@ static void checkThrows(String url) throws IOException { URL u = new URL(url); try { - InputStream in = u.openStream(); + InputStream in = u.openConnection(Proxy.NO_PROXY).getInputStream(); } catch (UnknownHostException x) { System.out.println("UnknownHostException is thrown as expected."); return;