8177648: getResponseCode() throws IllegalArgumentException caused by protocol error while following redirect

Reviewed-by: michaelm, chegar, dfuchs
This commit is contained in:
Jaikiran Pai 2019-08-26 12:25:49 +01:00 committed by Michael McMahon
parent ec24017b02
commit 1d67d474a5
5 changed files with 265 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2019, 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
@ -143,7 +143,9 @@ public abstract class ProxySelector {
* contain one element of type
* {@link java.net.Proxy Proxy}
* that represents a direct connection.
* @throws IllegalArgumentException if the argument is null
* @throws IllegalArgumentException if the argument is null or if
* the protocol or host cannot be determined from the provided
* {@code uri}
*/
public abstract List<Proxy> select(URI uri);