mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8177648: getResponseCode() throws IllegalArgumentException caused by protocol error while following redirect
Reviewed-by: michaelm, chegar, dfuchs
This commit is contained in:
parent
ec24017b02
commit
1d67d474a5
5 changed files with 265 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue