JDK-8365802 : AsFileDownloadTest should stop using Http2TestServer API - it should use HttpTestServer instead.
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-08-19
  • Updated: 2025-10-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
AsFileDownlodaTest uses Http2TestServer to create HTTP/2 server, and HttpTestServer to create HTTP/3 server. This result in code duplication in the HTTP handler - which implements both Http2TestHandler and HttpTestHandler - resulting in code duplication of the handle() methods.

The test should be updated to use  HttpTestServer uniformally, both for HTTP/2 and HTTP/3, which should allow to get rid of the dupliicated code.