JDK-8353847 : Remove extra args to System.out.printf in open/test/jdk/java/net/httpclient tests
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-04-07
  • Updated: 2025-08-14
  • Resolved: 2025-04-10
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 21 JDK 25
21.0.9-oracleFixed 25 b19Fixed
Related Reports
Causes :  
Description
the following have too many parameters to a printf, so are missing a formatter

open/test/jdk/java/net/httpclient/AsyncShutdownNow.java
open/test/jdk/java/net/httpclient/ShutdownNow.java
open/test/jdk/java/net/httpclient/HttpClientShutdown.java

issue with
out.printf(now() + "%d: shutting down client%n", i, sleep);

remove sleep arg from statement ?

and 
open/test/jdk/java/net/httpclient/HttpClientShutdown.java

out.printf(now() + "%s:  Closing body due to assertion - %s", error);

out.printf(now() + "%d: sleeping %d ms%n", i, sleep);

Comments
Fix request [21u] I backport this for parity with 21.0.9-oracle. No risk, only a test change. Resolved Copyright, clean anyways. Test passes. SAP nightly testing passed.
14-08-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/2089 Date: 2025-08-13 13:23:35 +0000
13-08-2025

Changeset: f94a4f7a Branch: master Author: Serhiy Sachkov <serhiy.sachkov@oracle.com> Committer: Mahendra Chhipa <mchhipa@openjdk.org> Date: 2025-04-10 08:28:01 +0000 URL: https://git.openjdk.org/jdk/commit/f94a4f7accd11161912ec2cdae6e290d0957666a
10-04-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/24507 Date: 2025-04-08 12:33:52 +0000
08-04-2025