8145732: Duplicate entry in http.nonProxyHosts will ignore subsequent entries
Summary: Test update to explicitly cover problematic scenario.
Reviewed-by: chegar
--- a/jdk/test/java/net/ProxySelector/B8035158.java Fri Aug 12 17:35:01 2016 +0200
+++ b/jdk/test/java/net/ProxySelector/B8035158.java Fri Aug 12 20:14:25 2016 +0300
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -22,7 +22,7 @@
*/
/*
* @test
- * @bug 8035158
+ * @bug 8035158 8145732
* @run main/othervm B8035158
*/
@@ -94,6 +94,8 @@
false));
t.add(new TestCase("google.com|google.ie", "http://google.ie",
false));
+ t.add(new TestCase("google.com|google.com|google.ie",
+ "http://google.ie", false));
t.add(new TestCase("google.com|bing.com|yahoo.com",
"http://127.0.0.1", false));