JDK-8360178 : TestArguments.atojulong gtest has incorrect format string
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-06-23
  • Updated: 2025-10-15
  • Resolved: 2025-06-25
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 26
11.0.30-oracleFixed 17.0.18-oracleFixed 21.0.10-oracleFixed 25.0.2Fixed 26 b04Fixed
Related Reports
Blocks :  
Description
In the TestArguments.atojulong gtest there is a use of jio_snprintf to print ULLONG_MAX. The format directive used is JULONG_FORMAT, which on some platforms is "%lu". That works on such platforms, but will trigger a gcc printf warning if enabled.

Comments
Fix request [17u] I backport this for parity with 17.0.18-oracle. No risk, only a test change. Clean backport. Test passes. SAP nightly testing passed.
14-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/4040 Date: 2025-10-13 14:56:09 +0000
13-10-2025

[jdk21u-fix-request] Approval Request from Rui Li A clean backport for JDK-8360178. Backport this for parity with oracle. This patch fixes formatting problem. Test passed: `make test-only TEST="gtest:ArgumentsTest"`. Low risk - test change only.
30-09-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/2285 Date: 2025-09-30 02:11:59 +0000
30-09-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk25u/pull/228 Date: 2025-09-22 14:25:32 +0000
22-09-2025

[jdk25u-fix-request] Approval Request from Jayashree S Kumar Clean backport. Fix for format directive when printing ULLONG_MAX used in gtest.
22-09-2025

Changeset: 878497fb Branch: master Author: Kim Barrett <kbarrett@openjdk.org> Date: 2025-06-25 15:16:44 +0000 URL: https://git.openjdk.org/jdk/commit/878497fb85b9f7d066829b745324028f9f8cdc60
25-06-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/25927 Date: 2025-06-23 02:05:29 +0000
23-06-2025