RFR: 8369313: java/net/httpclient/TimeoutBasic.java should accept that HttpTimeoutException should be somewhere down the cause chain

Daniel Fuchs dfuchs at openjdk.org
Wed Oct 8 15:17:17 UTC 2025


The TimeoutBasic.java test expects that HttpTimeoutException will be either the root cause, or the cause of the root cause of a CompletionException, while in fact it could be further down the cause chain. The test logic should be relaxed to allow that.

In addition I have logged a followup RFE ([JDK-8369315](https://bugs.openjdk.org/browse/JDK-8369315)) to possibly revisit the wrapping of HttpTimeoutExceptions.

-------------

Commit messages:
 - 8369313: java/net/httpclient/TimeoutBasic.java should accept that HttpTimeoutException should be somewhere down the cause chain

Changes: https://git.openjdk.org/jdk/pull/27694/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27694&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369313
  Stats: 40 lines in 1 file changed: 26 ins; 11 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/27694.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27694/head:pull/27694

PR: https://git.openjdk.org/jdk/pull/27694


More information about the net-dev mailing list