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-07-03
  • 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 26
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
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