8145732: Duplicate entry in http.nonProxyHosts will ignore subsequent entries
authorsnikandrova
Fri, 12 Aug 2016 20:14:25 +0300
changeset 40274 28c4614722f2
parent 40273 46a0740b18e6
child 40275 6a37d5a9619d
child 40398 2be90ca0e54e
8145732: Duplicate entry in http.nonProxyHosts will ignore subsequent entries Summary: Test update to explicitly cover problematic scenario. Reviewed-by: chegar
jdk/test/java/net/ProxySelector/B8035158.java
--- 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));