JDK 11 | JDK 17 | JDK 20 |
---|---|---|
11.0.19-oracleFixed | 17.0.7-oracleFixed | 20 b21Fixed |
Relates :
|
The test verifies that the HttpClient throws a ConnectException in response to DNS resolution failures. If the DNS server is unresponsive, the test may take a long time. We can configure Java to use a non-existent hosts file for name resolution; this way the negative DNS responses will always be available immediately.
|