JDK-8352895 : UserCookie.java runs wrong test class
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8,11,17,21,24,25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-03-25
  • Updated: 2025-06-24
  • Resolved: 2025-04-08
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 11 JDK 17 JDK 21 JDK 25 JDK 8
11.0.29-oracleFixed 17.0.17-oracleFixed 21.0.9-oracleFixed 25 b18Fixed 8u471Fixed
Related Reports
Causes :  
Description
test/jdk/sun/net/www/protocol/http/UserCookie.java runs class 'UserAuth' instead of 'UserCookie':

 * @run main/othervm UserAuth

[...]

public class UserCookie
{
Comments
[jdk21u-fix-request] Approval Request from Bara' Hasheesh fix test to run the correct test class. Backported for parity with oracle. Applies cleanly, tier1 tests & modified test passes. Risk is minimal as this only changes an existing test & changed test passes.
18-06-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1899 Date: 2025-06-18 08:24:28 +0000
18-06-2025

Changeset: edaeb4b2 Branch: master Author: Jaikiran Pai <jpai@openjdk.org> Date: 2025-04-08 00:33:36 +0000 URL: https://git.openjdk.org/jdk/commit/edaeb4b2da7c7a49ea3f3baebc7a072b56088e34
08-04-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24476 Date: 2025-04-07 07:00:14 +0000
07-04-2025

Looking through the history, it appears that this typo in the test has been present way ever since this test was introduced in https://bugs.openjdk.org/browse/JDK-6439651
25-03-2025