JDK-8329662 : Add a test to verify the behaviour of the default HEAD() method on HttpRequest.Builder
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-04-04
  • Updated: 2024-11-08
  • Resolved: 2024-04-05
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.
JDK 23
23 b18Fixed
Related Reports
Relates :  
Description
https://bugs.openjdk.org/browse/JDK-8276559 introduced a new default method HEAD() on the java.net.http.HttpRequest.Builder interface.

We currently have tests that verify the behaviour of this method when it's overridden by the implementing builder class. But we do not have any test which verifies the default HEAD() method's implementation, when that method isn't overridden. We should introduce a new test.

Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/18622 Date: 2024-04-04 11:50:32 +0000
08-11-2024

Changeset: 4a11db8b Author: Jaikiran Pai <jpai@openjdk.org> Date: 2024-04-05 13:30:22 +0000 URL: https://git.openjdk.org/jdk/commit/4a11db8b606f2b10f48f0b45335b661fe3095fc4
05-04-2024